OSDN Git Service

ext4: stop trying to verify just initialized bitmap in ext4_read_block_bitmap_nowait
authorKemeng Shi <shikemeng@huaweicloud.com>
Tue, 21 Feb 2023 11:59:18 +0000 (19:59 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 24 Mar 2023 03:00:08 +0000 (23:00 -0400)
commitcefa74d004fa48bc073ad66b7a7ad00dc8d7bfa6
tree11cfdfbd6f35b04ffaa31fa13890c079c13f3fd2
parentf567ea7843562b7d7dfe1e6cfea455a1e9623208
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>
fs/ext4/balloc.c