author | Xiaotian Feng
<dfeng@redhat.com> 2010-04-08 09:26:44 UTC |
committer | Pekka Enberg
<penberg@cs.helsinki.fi> 2010-05-22 07:57:31 UTC |
parent | bbd7d57bfe852d9788bae5fb171c7edb4021d8ac |
mm/slub.c | +9 | -2 |
diff --git a/mm/slub.c b/mm/slub.c index 78f1a202ca3..52ae5a53818 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -3341,8 +3341,15 @@ void *__kmalloc_node_track_caller(size_t size, gfp_t gfpflags, struct kmem_cache *s; void *ret; - if (unlikely(size > SLUB_MAX_SIZE)) - return kmalloc_large_node(size, gfpflags, node); + if (unlikely(size > SLUB_MAX_SIZE)) { + ret = kmalloc_large_node(size, gfpflags, node); + + trace_kmalloc_node(caller, ret, + size, PAGE_SIZE << get_order(size), + gfpflags, node); + + return ret; + } s = get_slab(size, gfpflags);