projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f567ea7
)
ext4: stop trying to verify just initialized bitmap in ext4_read_block_bitmap_nowait
author
Kemeng Shi
<shikemeng@huaweicloud.com>
Tue, 21 Feb 2023 11:59:18 +0000
(19:59 +0800)
committer
Theodore Ts'o
<tytso@mit.edu>
Fri, 24 Mar 2023 03:00:08 +0000
(23:00 -0400)
For case we initialize a bitmap bh, we will set bitmap bh verified.
We can return immediately instead of goto verify to remove unnecessary
work for trying to verify bitmap bh.
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Link:
https://lore.kernel.org/r/20230221115919.1918161-7-shikemeng@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/balloc.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ext4/balloc.c
b/fs/ext4/balloc.c
index 4de06d68e9e7e78c39cd6bf5aad0b431e6228866..dab46274d591776744bb42da2c00ca120cc5063f 100644
(file)
--- a/
fs/ext4/balloc.c
+++ b/
fs/ext4/balloc.c
@@
-484,7
+484,7
@@
ext4_read_block_bitmap_nowait(struct super_block *sb, ext4_group_t block_group,
set_buffer_verified(bh);
ext4_unlock_group(sb, block_group);
unlock_buffer(bh);
-
goto verify
;
+
return bh
;
}
ext4_unlock_group(sb, block_group);
if (buffer_uptodate(bh)) {