diff options
Diffstat (limited to 'kernel/mm/page_owner.c')
-rw-r--r-- | kernel/mm/page_owner.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/kernel/mm/page_owner.c b/kernel/mm/page_owner.c index 0993f5f36..983c3a10f 100644 --- a/kernel/mm/page_owner.c +++ b/kernel/mm/page_owner.c @@ -76,6 +76,13 @@ void __set_page_owner(struct page *page, unsigned int order, gfp_t gfp_mask) __set_bit(PAGE_EXT_OWNER, &page_ext->flags); } +gfp_t __get_page_owner_gfp(struct page *page) +{ + struct page_ext *page_ext = lookup_page_ext(page); + + return page_ext->gfp_mask; +} + static ssize_t print_page_owner(char __user *buf, size_t count, unsigned long pfn, struct page *page, struct page_ext *page_ext) @@ -310,4 +317,4 @@ static int __init pageowner_init(void) return 0; } -module_init(pageowner_init) +late_initcall(pageowner_init) |