Skip to content

Commit 5f65945

Browse files
zangyangyang666Jaegeuk Kim
authored andcommitted
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 <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent c910a64 commit 5f65945

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/f2fs/data.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,7 @@ struct page *f2fs_find_data_page(struct inode *inode, pgoff_t index,
12801280
struct address_space *mapping = inode->i_mapping;
12811281
struct page *page;
12821282

1283-
page = find_get_page(mapping, index);
1283+
page = find_get_page_flags(mapping, index, FGP_ACCESSED);
12841284
if (page && PageUptodate(page))
12851285
return page;
12861286
f2fs_put_page(page, 0);

0 commit comments

Comments
 (0)