diff options
author | Jun Piao <piaojun@huawei.com> | 2018-01-11 21:17:49 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2018-01-11 21:17:49 +0300 |
commit | 49598e04b5a1c3679cbee0dda8c2a0461e9bb320 (patch) | |
tree | d0bb03812d4febc234d2cd16fadb4eddf22ced6b /fs/ext4/block_validity.c | |
parent | 06f29cc81f0350261f59643a505010531130eea0 (diff) | |
download | linux-49598e04b5a1c3679cbee0dda8c2a0461e9bb320.tar.xz |
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>
Diffstat (limited to 'fs/ext4/block_validity.c')
-rw-r--r-- | fs/ext4/block_validity.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ext4/block_validity.c b/fs/ext4/block_validity.c index bee888e0e2db..913061c0de1b 100644 --- a/fs/ext4/block_validity.c +++ b/fs/ext4/block_validity.c @@ -147,11 +147,11 @@ int ext4_setup_system_zone(struct super_block *sb) int ret; if (!test_opt(sb, BLOCK_VALIDITY)) { - if (EXT4_SB(sb)->system_blks.rb_node) + if (sbi->system_blks.rb_node) ext4_release_system_zone(sb); return 0; } - if (EXT4_SB(sb)->system_blks.rb_node) + if (sbi->system_blks.rb_node) return 0; for (i=0; i < ngroups; i++) { @@ -173,7 +173,7 @@ int ext4_setup_system_zone(struct super_block *sb) } if (test_opt(sb, DEBUG)) - debug_print_tree(EXT4_SB(sb)); + debug_print_tree(sbi); return 0; } |