aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/slab.c')
-rw-r--r--mm/slab.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 4d00855629c4..208323fd37bc 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -3318,6 +3318,8 @@ __cache_alloc_node(struct kmem_cache *cachep, gfp_t flags, int nodeid,
3318 unsigned long save_flags; 3318 unsigned long save_flags;
3319 void *ptr; 3319 void *ptr;
3320 3320
3321 lockdep_trace_alloc(flags);
3322
3321 if (slab_should_failslab(cachep, flags)) 3323 if (slab_should_failslab(cachep, flags))
3322 return NULL; 3324 return NULL;
3323 3325
@@ -3394,6 +3396,8 @@ __cache_alloc(struct kmem_cache *cachep, gfp_t flags, void *caller)
3394 unsigned long save_flags; 3396 unsigned long save_flags;
3395 void *objp; 3397 void *objp;
3396 3398
3399 lockdep_trace_alloc(flags);
3400
3397 if (slab_should_failslab(cachep, flags)) 3401 if (slab_should_failslab(cachep, flags))
3398 return NULL; 3402 return NULL;
3399 3403
@@ -3988,8 +3992,7 @@ static void cache_reap(struct work_struct *w)
3988 struct kmem_cache *searchp; 3992 struct kmem_cache *searchp;
3989 struct kmem_list3 *l3; 3993 struct kmem_list3 *l3;
3990 int node = numa_node_id(); 3994 int node = numa_node_id();
3991 struct delayed_work *work = 3995 struct delayed_work *work = to_delayed_work(w);
3992 container_of(w, struct delayed_work, work);
3993 3996
3994 if (!mutex_trylock(&cache_chain_mutex)) 3997 if (!mutex_trylock(&cache_chain_mutex))
3995 /* Give up. Setup the next iteration. */ 3998 /* Give up. Setup the next iteration. */