Message ID | 20211226221956.2EsizQx2w%akpm@linux-foundation.org |
---|---|
State | New |
Headers | show |
Series | [merged] mm-mempolicy-fix-thp-allocations-escaping-mempolicy-restrictions.patch removed from -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; }