Loading fs/erofs/zdata.c +6 −11 Original line number Diff line number Diff line Loading @@ -331,11 +331,8 @@ int erofs_try_to_free_all_cached_pages(struct erofs_sb_info *sbi, /* barrier is implied in the following 'unlock_page' */ WRITE_ONCE(pcl->compressed_pages[i], NULL); set_page_private(page, 0); ClearPagePrivate(page); detach_page_private(page); unlock_page(page); put_page(page); } return 0; } Loading @@ -358,11 +355,8 @@ int erofs_try_to_free_cached_page(struct address_space *mapping, } erofs_workgroup_unfreeze(&pcl->obj, 1); if (ret) { set_page_private(page, 0); ClearPagePrivate(page); put_page(page); } if (ret) detach_page_private(page); } return ret; } Loading Loading @@ -1184,8 +1178,9 @@ static struct page *pickup_page_for_submission(struct z_erofs_pcluster *pcl, set_page_private(page, Z_EROFS_SHORTLIVED_PAGE); goto out; } set_page_private(page, (unsigned long)pcl); SetPagePrivate(page); attach_page_private(page, pcl); /* drop a refcount added by allocpage (then we have 2 refs here) */ put_page(page); out: /* the only exit (for tracing and debugging) */ return page; Loading Loading
fs/erofs/zdata.c +6 −11 Original line number Diff line number Diff line Loading @@ -331,11 +331,8 @@ int erofs_try_to_free_all_cached_pages(struct erofs_sb_info *sbi, /* barrier is implied in the following 'unlock_page' */ WRITE_ONCE(pcl->compressed_pages[i], NULL); set_page_private(page, 0); ClearPagePrivate(page); detach_page_private(page); unlock_page(page); put_page(page); } return 0; } Loading @@ -358,11 +355,8 @@ int erofs_try_to_free_cached_page(struct address_space *mapping, } erofs_workgroup_unfreeze(&pcl->obj, 1); if (ret) { set_page_private(page, 0); ClearPagePrivate(page); put_page(page); } if (ret) detach_page_private(page); } return ret; } Loading Loading @@ -1184,8 +1178,9 @@ static struct page *pickup_page_for_submission(struct z_erofs_pcluster *pcl, set_page_private(page, Z_EROFS_SHORTLIVED_PAGE); goto out; } set_page_private(page, (unsigned long)pcl); SetPagePrivate(page); attach_page_private(page, pcl); /* drop a refcount added by allocpage (then we have 2 refs here) */ put_page(page); out: /* the only exit (for tracing and debugging) */ return page; Loading