ext4: use sbi instead of EXT4_SB(sb) in ext4_mb_new_blocks_simple()
authorLu Hongfei <luhongfei@vivo.com>
Fri, 7 Jul 2023 11:59:07 +0000 (19:59 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 27 Aug 2023 15:27:12 +0000 (11:27 -0400)
Signed-off-by: Lu Hongfei <luhongfei@vivo.com>
Link: https://lore.kernel.org/r/20230707115907.26637-1-luhongfei@vivo.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mballoc.c

index 96068d6..a807e8b 100644 (file)
@@ -6092,7 +6092,7 @@ ext4_mb_new_blocks_simple(struct ext4_allocation_request *ar, int *errp)
        ext4_grpblk_t max = EXT4_CLUSTERS_PER_GROUP(sb);
        ext4_grpblk_t i = 0;
        ext4_fsblk_t goal, block;
-       struct ext4_super_block *es = EXT4_SB(sb)->s_es;
+       struct ext4_super_block *es = sbi->s_es;
 
        goal = ar->goal;
        if (goal < le32_to_cpu(es->s_first_data_block) ||