aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/slab.c')
-rw-r--r--mm/slab.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mm/slab.c b/mm/slab.c
index f80b52388a1..26138c9f8f0 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -2809,8 +2809,7 @@ static inline void *____cache_alloc(struct kmem_cache *cachep, gfp_t flags)
2809 struct array_cache *ac; 2809 struct array_cache *ac;
2810 2810
2811#ifdef CONFIG_NUMA 2811#ifdef CONFIG_NUMA
2812 if (unlikely(current->flags & (PF_SPREAD_PAGE | PF_SPREAD_SLAB | 2812 if (unlikely(current->flags & (PF_SPREAD_SLAB | PF_MEMPOLICY))) {
2813 PF_MEMPOLICY))) {
2814 objp = alternate_node_alloc(cachep, flags); 2813 objp = alternate_node_alloc(cachep, flags);
2815 if (objp != NULL) 2814 if (objp != NULL)
2816 return objp; 2815 return objp;
@@ -2849,7 +2848,7 @@ static __always_inline void *__cache_alloc(struct kmem_cache *cachep,
2849 2848
2850#ifdef CONFIG_NUMA 2849#ifdef CONFIG_NUMA
2851/* 2850/*
2852 * Try allocating on another node if PF_SPREAD_PAGE|PF_SPREAD_SLAB|PF_MEMPOLICY. 2851 * Try allocating on another node if PF_SPREAD_SLAB|PF_MEMPOLICY.
2853 * 2852 *
2854 * If we are in_interrupt, then process context, including cpusets and 2853 * If we are in_interrupt, then process context, including cpusets and
2855 * mempolicy, may not apply and should not be used for allocation policy. 2854 * mempolicy, may not apply and should not be used for allocation policy.