summaryrefslogtreecommitdiff
path: root/fs/ext4
diff options
context:
space:
mode:
authorRitesh Harjani <riteshh@linux.ibm.com>2022-02-16 10:02:48 +0300
committerTheodore Ts'o <tytso@mit.edu>2022-02-26 05:34:56 +0300
commitbd8247eee1a2b22e2270b3933ab8dca9316b3718 (patch)
treeb5554c4cee057c18e1e3c9479dd16dd76b6b3278 /fs/ext4
parent123e3016ee9b3674a819537bc4c3174e25cd48fc (diff)
downloadlinux-bd8247eee1a2b22e2270b3933ab8dca9316b3718.tar.xz
ext4: no need to test for block bitmap bits in ext4_mb_mark_bb()
We don't need the return value of mb_test_and_clear_bits() in ext4_mb_mark_bb() So simply use mb_clear_bits() instead. Signed-off-by: Ritesh Harjani <riteshh@linux.ibm.com> Reviewed-by: Jan Kara <jack@suse.cz> Link: https://lore.kernel.org/r/a971935306dafb124da0193c7dad1aa485210b62.1644992610.git.riteshh@linux.ibm.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/mballoc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index c2a6f924b456..bb3cfcd545ce 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -3941,7 +3941,7 @@ void ext4_mb_mark_bb(struct super_block *sb, ext4_fsblk_t block,
if (state)
mb_set_bits(bitmap_bh->b_data, blkoff, clen);
else
- mb_test_and_clear_bits(bitmap_bh->b_data, blkoff, clen);
+ mb_clear_bits(bitmap_bh->b_data, blkoff, clen);
if (ext4_has_group_desc_csum(sb) &&
(gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT))) {
gdp->bg_flags &= cpu_to_le16(~EXT4_BG_BLOCK_UNINIT);