f2fs: cache more dentry pages
PATCH v2 1/1 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.
--- fs/f2fs/data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/data.c +1 -1
@@ -1286,7 +1286,7 @@ struct page *f2fs_find_data_page(struct inode *inode, pgoff_t index,struct address_space *mapping = inode->i_mapping;struct page *page; - page =find_get_page (mapping, index); + page =find_get_page_flags (mapping, index,FGP_ACCESSED );if (page &&PageUptodate (page))return page;f2fs_put_page (page,0 );
--
2.43.2
#/******���ʼ����丽������С��˾�ı�����Ϣ�������ڷ��������ַ���г��ĸ��˻�Ⱥ�顣��ֹ�κ����������κ���ʽʹ�ã�������������ȫ���ֵ�й¶�����ơ���ɢ�������ʼ��е���Ϣ������������˱��ʼ������������绰���ʼ�֪ͨ�����˲�ɾ�����ʼ��� This e-mail and its attachments contain confidential information from XIAOMI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!******/#
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Quoted 6 lines · On 2024/11/22 18:58, zangyangyang1 wrote:
While traversing dir entries in dentry page, it's better to refresh current accessed page in lru list by using
FGP_ACCESSEDflag, 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]>
Thanks,
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel