projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e44fc92
)
ext4: remove redundant check of count
author
Kemeng Shi
<shikemeng@huaweicloud.com>
Sat, 26 Aug 2023 17:47:05 +0000
(
01:47
+0800)
committer
Theodore Ts'o
<tytso@mit.edu>
Fri, 6 Oct 2023 02:32:14 +0000
(22:32 -0400)
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>
fs/ext4/resize.c
patch
|
blob
|
history
diff --git
a/fs/ext4/resize.c
b/fs/ext4/resize.c
index 5e4856d68c4aa4cfc16b4f0287e5ecde8b491f78..c51994e22af528181e4069ef4abda92d2c1457f5 100644
(file)
--- 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: