Message ID | 20211225051235.JoA_I5IqL%akpm@linux-foundation.org (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [1/9] kfence: fix memory leak when cat kfence objects | expand |
--- a/mm/mempolicy.c~mm-mempolicy-fix-thp-allocations-escaping-mempolicy-restrictions +++ a/mm/mempolicy.c @@ -2140,8 +2140,7 @@ struct page *alloc_pages_vma(gfp_t gfp, * memory with both reclaim and compact as well. */ if (!page && (gfp & __GFP_DIRECT_RECLAIM)) - page = __alloc_pages_node(hpage_node, - gfp, order); + page = __alloc_pages(gfp, order, hpage_node, nmask); goto out; }