summaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
authorEzequiel Garcia2012-08-14 14:55:21 +0200
committerPekka Enberg2012-09-04 09:22:58 +0200
commite21827aadd77e33833eeb393de2e8675e9b399e2 (patch)
treecce83f2c211fd657a37fc7adc3e0718eb4175882 /mm/slub.c
parentmm, slab: remove page_get_cache (diff)
downloadkernel-qcow2-linux-e21827aadd77e33833eeb393de2e8675e9b399e2.tar.gz
kernel-qcow2-linux-e21827aadd77e33833eeb393de2e8675e9b399e2.tar.xz
kernel-qcow2-linux-e21827aadd77e33833eeb393de2e8675e9b399e2.zip
mm: Use __do_krealloc to do the krealloc job
Without this patch we can get (many) kmem trace events with call site at krealloc(). This happens because krealloc is calling __krealloc, which performs the allocation through kmalloc_track_caller. Since neither krealloc nor __krealloc are marked inline explicitly, the caller can be traced as being krealloc, which clearly is not the intended behavior. This patch allows to get the real caller of krealloc, by creating an always inlined function __do_krealloc, thus tracing the call site accurately. Acked-by: Christoph Lameter <cl@linux.com> Cc: Glauber Costa <glommer@parallels.com> Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'mm/slub.c')
0 files changed, 0 insertions, 0 deletions