Lines Matching refs:page_ext
5 #include <linux/page_ext.h>
46 * When need callback returns true, page_ext checks if there is a request for
48 * extra space is allocated for each page_ext entry and offset is returned to
70 unsigned long page_ext_size = sizeof(struct page_ext);
109 static inline struct page_ext *get_entry(void *base, unsigned long index)
122 struct page_ext *lookup_page_ext(const struct page *page)
126 struct page_ext *base;
131 * page can reach here before the page_ext arrays are
144 struct page_ext *base;
186 pr_info("allocated %ld bytes of page_ext\n", total_usage);
190 pr_crit("allocation of page_ext failed.\n");
196 struct page_ext *lookup_page_ext(const struct page *page)
202 * page can reach here before the page_ext arrays are
206 if (!section->page_ext)
208 return get_entry(section->page_ext, pfn);
230 struct page_ext *base;
235 if (section->page_ext)
242 * The value stored in section->page_ext is (base - pfn)
258 section->page_ext = (void *)base - page_ext_size * pfn;
282 struct page_ext *base;
285 if (!ms || !ms->page_ext)
287 base = get_entry(ms->page_ext, pfn);
289 ms->page_ext = NULL;
406 pr_info("allocated %ld bytes of page_ext\n", total_usage);