mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02:00
ext4: remove redundant check of count
Remove zero check of count which is always non-zero. Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com> Reviewed-by: Theodore Ts'o <tytso@mit.edu> Link: https://lore.kernel.org/r/20230826174712.4059355-7-shikemeng@huaweicloud.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
parent
e44fc921b8
commit
7d4cd3b45a
|
|
@ -699,16 +699,14 @@ static int setup_new_flex_group_blocks(struct super_block *sb,
|
|||
block = start;
|
||||
}
|
||||
|
||||
if (count) {
|
||||
err = set_flexbg_block_bitmap(sb, handle,
|
||||
flex_gd,
|
||||
EXT4_B2C(sbi, start),
|
||||
EXT4_B2C(sbi,
|
||||
start + count
|
||||
- 1));
|
||||
if (err)
|
||||
goto out;
|
||||
}
|
||||
err = set_flexbg_block_bitmap(sb, handle,
|
||||
flex_gd,
|
||||
EXT4_B2C(sbi, start),
|
||||
EXT4_B2C(sbi,
|
||||
start + count
|
||||
- 1));
|
||||
if (err)
|
||||
goto out;
|
||||
}
|
||||
|
||||
out:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user