diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-03-04 12:49:19 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-04 12:49:19 -0500 |
commit | 28b1bd1cbc33cae95a309691d814399a69cf3070 (patch) | |
tree | 6474d10332662f5302be0df8527c9e9e31e32a95 /mm/slab.c | |
parent | 2602c3ba4508f528db024c1d209256513ea05de6 (diff) | |
parent | 1075414b06109a99b0e87601e84c74a95bd45681 (diff) |
Merge branch 'core/locking' into tracing/ftrace
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -3327,6 +3327,8 @@ __cache_alloc_node(struct kmem_cache *cachep, gfp_t flags, int nodeid, | |||
3327 | unsigned long save_flags; | 3327 | unsigned long save_flags; |
3328 | void *ptr; | 3328 | void *ptr; |
3329 | 3329 | ||
3330 | lockdep_trace_alloc(flags); | ||
3331 | |||
3330 | if (slab_should_failslab(cachep, flags)) | 3332 | if (slab_should_failslab(cachep, flags)) |
3331 | return NULL; | 3333 | return NULL; |
3332 | 3334 | ||
@@ -3403,6 +3405,8 @@ __cache_alloc(struct kmem_cache *cachep, gfp_t flags, void *caller) | |||
3403 | unsigned long save_flags; | 3405 | unsigned long save_flags; |
3404 | void *objp; | 3406 | void *objp; |
3405 | 3407 | ||
3408 | lockdep_trace_alloc(flags); | ||
3409 | |||
3406 | if (slab_should_failslab(cachep, flags)) | 3410 | if (slab_should_failslab(cachep, flags)) |
3407 | return NULL; | 3411 | return NULL; |
3408 | 3412 | ||