aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/slab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/slab.c b/mm/slab.c
index a467b308c682..881951e67f12 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -2994,7 +2994,7 @@ out:
2994 2994
2995#ifdef CONFIG_NUMA 2995#ifdef CONFIG_NUMA
2996/* 2996/*
2997 * Try allocating on another node if PF_SPREAD_SLAB is a mempolicy is set. 2997 * Try allocating on another node if PFA_SPREAD_SLAB is a mempolicy is set.
2998 * 2998 *
2999 * If we are in_interrupt, then process context, including cpusets and 2999 * If we are in_interrupt, then process context, including cpusets and
3000 * mempolicy, may not apply and should not be used for allocation policy. 3000 * mempolicy, may not apply and should not be used for allocation policy.
@@ -3226,7 +3226,7 @@ __do_cache_alloc(struct kmem_cache *cache, gfp_t flags)
3226{ 3226{
3227 void *objp; 3227 void *objp;
3228 3228
3229 if (current->mempolicy || unlikely(current->flags & PF_SPREAD_SLAB)) { 3229 if (current->mempolicy || cpuset_do_slab_mem_spread()) {
3230 objp = alternate_node_alloc(cache, flags); 3230 objp = alternate_node_alloc(cache, flags);
3231 if (objp) 3231 if (objp)
3232 goto out; 3232 goto out;