diff options
author | Kemeng Shi <shikemeng@huaweicloud.com> | 2023-08-26 20:47:05 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2023-10-06 05:32:14 +0300 |
commit | 7d4cd3b45af025befe3bca94f87359a6603b6e95 (patch) | |
tree | c8e5b03393043e1bd3ec5b0d0f7855a1c09c0156 /fs/ext4/resize.c | |
parent | e44fc921b84ff08a9e2fb827a146fa4021d016f3 (diff) | |
download | linux-7d4cd3b45af025befe3bca94f87359a6603b6e95.tar.xz |
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>
Diffstat (limited to 'fs/ext4/resize.c')
-rw-r--r-- | fs/ext4/resize.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/fs/ext4/resize.c b/fs/ext4/resize.c index 5e4856d68c4a..c51994e22af5 100644 --- a/fs/ext4/resize.c +++ b/fs/ext4/resize.c @@ -699,16 +699,14 @@ handle_ib: 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: |