Lines Matching refs:page
13 struct page **in, **out;
27 struct page **pagepool);
31 /* some special page->private (unsigned long, see below) */
36 * For all pages in a pcluster, page->private should be one of
37 * Type Last 2bits page->private
38 * short-lived page 00 Z_EROFS_SHORTLIVED_PAGE
39 * preallocated page (tryalloc) 00 Z_EROFS_PREALLOCATED_PAGE
40 * cached/managed page 00 pointer to z_erofs_pcluster
41 * online page (file-backed, 01/10/11 sub-index << 2 | count
44 * page->mapping should be one of
45 * Type page->mapping
46 * short-lived page NULL
47 * preallocated page NULL
48 * cached/managed page non-NULL or NULL (invalidated/truncated page)
49 * online page non-NULL
52 * which is used for page reclaim / migration.
57 * page->private (no need to set PagePrivate since these are non-LRU /
60 static inline bool z_erofs_is_shortlived_page(struct page *page)
62 if (page->private != Z_EROFS_SHORTLIVED_PAGE)
65 DBG_BUGON(page->mapping);
69 static inline bool z_erofs_put_shortlivedpage(struct page **pagepool,
70 struct page *page)
72 if (!z_erofs_is_shortlived_page(page))
76 if (page_ref_count(page) > 1) {
77 put_page(page);
80 erofs_pagepool_add(pagepool, page);
87 struct page *page)
89 return page->mapping == MNGD_MAPPING(sbi);
102 struct page **pagepool);
104 struct page **pagepool);