ext4: use 'sbi' instead of 'EXT4_SB(sb)'
We could use 'sbi' instead of 'EXT4_SB(sb)' to make code more elegant. Signed-off-by: Jun Piao <piaojun@huawei.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Reviewed-by: Jan Kara <jack@suse.cz>
This commit is contained in:
@@ -1477,7 +1477,7 @@ static int ext4_flex_group_add(struct super_block *sb,
|
||||
goto exit_journal;
|
||||
|
||||
group = flex_gd->groups[0].group;
|
||||
BUG_ON(group != EXT4_SB(sb)->s_groups_count);
|
||||
BUG_ON(group != sbi->s_groups_count);
|
||||
err = ext4_add_new_descs(handle, sb, group,
|
||||
resize_inode, flex_gd->count);
|
||||
if (err)
|
||||
|
Reference in New Issue
Block a user