erofs: directly use wrapper erofs_page_is_managed() when shrinking
Yue Hu
reviewerPATCH 1/1 erofs: directly use wrapper erofs_page_is_managed() when shrinking
From: Yue Hu <[email protected]>
We already have the wrapper function to identify managed page.
Signed-off-by Yue Hu <[email protected]>
--- fs/erofs/zdata.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
fs/erofs/zdata.c +1 -2
@@ -310,7 +310,6 @@ int erofs_try_to_free_all_cached_pages(struct erofs_sb_info *sbi, {struct z_erofs_pcluster *const pcl = container_of(grp, struct z_erofs_pcluster, obj); -struct address_space *const mapping =MNGD_MAPPING (sbi);int i;/*
@@ -327,7 +326,7 @@ int erofs_try_to_free_all_cached_pages(struct erofs_sb_info *sbi,if (!trylock_page (page))return -EBUSY ; -if (page->mapping != mapping) +if (!erofs_page_is_managed (sbi, page))continue ;/* barrier is implied in the following 'unlock_page' */
Signature · 1 line
1.9.1
Quoted 5 lines · Yue Hu
From: Yue Hu <[email protected]>
We already have the wrapper function to identify managed page.
Signed-off-by Yue Hu <[email protected]>
Reviewed-by Gao Xiang <[email protected]>
Thanks,
Gao Xiang
Quoted 5 lines · Yue Hu
From: Yue Hu <[email protected]>
We already have the wrapper function to identify managed page.
Signed-off-by Yue Hu <[email protected]>
Reviewed-by Chao Yu <[email protected]>
Thanks,