ext4: return found group directly in ext4_mb_choose_next_group_goal_fast
authorKemeng Shi <shikemeng@huaweicloud.com>
Tue, 1 Aug 2023 14:32:02 +0000 (22:32 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 3 Aug 2023 14:47:30 +0000 (10:47 -0400)
commitb50675a4a6a69110c0c2baadebd2075d3b31b25c
treec42af073a64dad11a2dddfca829798ef29caa016
parentf6c72fef1272e65eff8d5ecef8c744686f6b7745
ext4: return found group directly in ext4_mb_choose_next_group_goal_fast

Return good group when it's found in loop to remove futher check if good
group is found after loop.

Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Link: https://lore.kernel.org/r/20230801143204.2284343-9-shikemeng@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mballoc.c