Message ID | 20211208233026.yaSqy1PdE%akpm@linux-foundation.org |
---|---|
State | Superseded |
Headers | show |
Series | + mm-mempolicy-fix-thp-allocations-escaping-mempolicy-restrictions.patch added to -mm tree | 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; }