diff options
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 | ||