aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/page_alloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 65876feb86f3..46c30fa26acd 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -3903,9 +3903,10 @@ static inline bool prepare_alloc_pages(gfp_t gfp_mask, unsigned int order,
3903 3903
3904 if (cpusets_enabled()) { 3904 if (cpusets_enabled()) {
3905 *alloc_mask |= __GFP_HARDWALL; 3905 *alloc_mask |= __GFP_HARDWALL;
3906 *alloc_flags |= ALLOC_CPUSET;
3907 if (!ac->nodemask) 3906 if (!ac->nodemask)
3908 ac->nodemask = &cpuset_current_mems_allowed; 3907 ac->nodemask = &cpuset_current_mems_allowed;
3908 else
3909 *alloc_flags |= ALLOC_CPUSET;
3909 } 3910 }
3910 3911
3911 lockdep_trace_alloc(gfp_mask); 3912 lockdep_trace_alloc(gfp_mask);