f2fs: cache more dentry pages
authorzangyangyang1 <zangyangyang1@xiaomi.com>
Fri, 22 Nov 2024 10:58:22 +0000 (18:58 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 16 Dec 2024 16:12:28 +0000 (16:12 +0000)
commit5f6594542779e69c6c6e2b57341c352174135eed
tree186982be49794baa34cc5b27f744a315195480e2
parentc910a64bc4e21782959221b6ea2d6c4cce0506c7
f2fs: cache more dentry pages

While traversing dir entries in dentry page, it's better to refresh current
accessed page in lru list by using FGP_ACCESSED flag, otherwise, such page
may has less chance to survive during memory reclaim, result in causing
additional IO when revisiting dentry page.

Signed-off-by: zangyangyang1 <zangyangyang1@xiaomi.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c