ext4: factor out ext4_mb_might_prefetch()
authorBaokun Li <libaokun1@huawei.com>
Mon, 14 Jul 2025 13:03:23 +0000 (21:03 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 25 Jul 2025 13:14:17 +0000 (09:14 -0400)
commit5abd85f667a19ef7d880ed00c201fc22de6fa707
tree19b08623f67ece654f9e1811f0bdbd30e51eb641
parent45704f92e55853fe287760e019feb45eeb9c988e
ext4: factor out ext4_mb_might_prefetch()

Extract ext4_mb_might_prefetch() to make the code clearer and to
prepare for the later conversion of 'choose group' to 'scan groups'.
No functional changes.

Signed-off-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: Zhang Yi <yi.zhang@huawei.com>
Link: https://patch.msgid.link/20250714130327.1830534-14-libaokun1@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mballoc.c
fs/ext4/mballoc.h