On 2011-08-01, at 5:20 AM, Ted Ts'o <tytso@xxxxxxx> wrote: > On Wed, Jul 20, 2011 at 09:32:53PM +0800, Yongqiang Yang wrote: >> This patch teaches ext4 to get free blocks count of BLOCK_UNINIT groups from >> group desc directly. >> >> Signed-off-by: Yongqiang Yang <xiaoqiangnk@xxxxxxxxx> > > The reason why we weren't doing this is because older versions of > e2fsprogs I don't think set the free blocks count correctly. Or at > least, I have a vague memory that this was the case. I'll have to do > some code archeology before can be 100% sure this is safe to do. I think the other reason is that this gives the kernel code some flexibility in how the group is formatted (e.g. flex_bg or whatever may move allocated blocks around). Cheers, Andreas-- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html