Lines Matching refs:page
16 #include <linux/kernel-page-flags.h>
39 /* /proc/kpagecount - an array exposing page counts
42 * physical page count.
49 struct page *ppage;
97 /* /proc/kpageflags - an array exposing page flags
100 * physical page flags.
108 u64 stable_page_flags(struct page *page)
115 * it differentiates a memory hole from a page with no flags
117 if (!page)
120 k = page->flags;
126 * Note that page->_mapcount is overloaded in SLOB/SLUB/SLQB, so the
129 if (!PageSlab(page) && page_mapped(page))
131 if (PageAnon(page))
133 if (PageKsm(page))
138 * they together define a compound page's start/end pos and order
140 if (PageHead(page))
142 if (PageTail(page))
144 if (PageHuge(page))
150 * to make sure a given page is a thp, not a non-huge compound page.
152 else if (PageTransCompound(page)) {
153 struct page *head = compound_head(page);
161 } else if (is_zero_pfn(page_to_pfn(page)))
166 * Caveats on high order pages: page->_refcount will only be set
167 * -1 on the head page; SLUB/SLQB do the same for PG_slab;
170 if (PageBuddy(page))
172 else if (page_count(page) == 0 && is_free_buddy_page(page))
175 if (PageOffline(page))
177 if (PageTable(page))
180 if (page_is_idle(page))
186 if (PageTail(page) && PageSlab(compound_head(page)))
199 if (PageSwapCache(page))
232 struct page *ppage;
280 struct page *ppage;