Hi, > @@ -358,6 +361,7 @@ group_add_out: > ext4_fsblk_t n_blocks_count; > struct super_block *sb = inode->i_sb; > int err = 0, err2 = 0; > + ext4_group_t o_group = EXT4_SB(sb)->s_groups_count; > > if (EXT4_HAS_RO_COMPAT_FEATURE(sb, > EXT4_FEATURE_RO_COMPAT_BIGALLOC)) { > @@ -388,6 +392,11 @@ group_add_out: > if (err == 0) > err = err2; > mnt_drop_write_file(filp); > + if (!err && (o_group > EXT4_SB(sb)->s_groups_count) && Maybe a n00b question Ted, but can o_group here be bigger than ->s_groups_count in any chance? The patch looks good, Reviewed-by: Carlos Maiolino <cmaiolino@xxxxxxxxxx> -- Carlos -- 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