diff options
author | Kemeng Shi <shikemeng@huaweicloud.com> | 2023-02-21 19:59:18 +0800 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2023-03-23 23:00:08 -0400 |
commit | cefa74d004fa48bc073ad66b7a7ad00dc8d7bfa6 (patch) | |
tree | 11cfdfbd6f35b04ffaa31fa13890c079c13f3fd2 /fs/ext4/balloc.c | |
parent | f567ea7843562b7d7dfe1e6cfea455a1e9623208 (diff) |
ext4: stop trying to verify just initialized bitmap in ext4_read_block_bitmap_nowait
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>
Diffstat (limited to 'fs/ext4/balloc.c')
-rw-r--r-- | fs/ext4/balloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c index 4de06d68e9e7..dab46274d591 100644 --- 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)) { |