projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
123e301
)
ext4: no need to test for block bitmap bits in ext4_mb_mark_bb()
author
Ritesh Harjani
<riteshh@linux.ibm.com>
Wed, 16 Feb 2022 07:02:48 +0000
(12:32 +0530)
committer
Theodore Ts'o
<tytso@mit.edu>
Sat, 26 Feb 2022 02:34:56 +0000
(21:34 -0500)
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>
fs/ext4/mballoc.c
patch
|
blob
|
history
diff --git
a/fs/ext4/mballoc.c
b/fs/ext4/mballoc.c
index
c2a6f92
..
bb3cfcd
100644
(file)
--- 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);