From: Frederic Bohe <frederic.bohe@xxxxxxxx> Block group's checksum need to be re-calculated during the initialization of an UNINIT'd group. This fix a race when several threads try to allocate a new inode in an UNINIT'd group. Signed-off-by: Frederic Bohe <frederic.bohe@xxxxxxxx> --- ialloc.c | 2 ++ 1 file changed, 2 insertions(+) Index: linux/fs/ext4/ialloc.c =================================================================== --- linux.orig/fs/ext4/ialloc.c 2008-11-06 17:22:14.000000000 +0100 +++ linux/fs/ext4/ialloc.c 2008-11-07 10:43:41.000000000 +0100 @@ -718,6 +718,8 @@ got: gdp->bg_flags &= cpu_to_le16(~EXT4_BG_BLOCK_UNINIT); free = ext4_free_blocks_after_init(sb, group, gdp); gdp->bg_free_blocks_count = cpu_to_le16(free); + gdp->bg_checksum = ext4_group_desc_csum(sbi, group, + gdp); } spin_unlock(sb_bgl_lock(sbi, group)); -- -- 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