Message ID | 20211227133953.27891-1-arbn@yandex-team.com |
---|---|
State | New |
Headers | show |
Series | [5.10] mm: mempolicy: fix THP allocations escaping mempolicy restrictions | expand |
diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 3ca4898f3f24..c8b1592dff73 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -2222,8 +2222,8 @@ alloc_pages_vma(gfp_t gfp, int order, struct vm_area_struct *vma, * 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_nodemask(gfp, order, + hpage_node, nmask); goto out; }