summaryrefslogtreecommitdiffstats
path: root/mm/vmstat.c
diff options
context:
space:
mode:
authorVaishali Thakkar2015-02-10 23:09:40 +0100
committerLinus Torvalds2015-02-10 23:30:30 +0100
commit7c4da061f2e953df479b126b9263f0e845bce0ec (patch)
tree4aba59e0f24dd541445c2aeb79cdba2382498401 /mm/vmstat.c
parentmm/slub.c: fix typo in comment (diff)
downloadkernel-qcow2-linux-7c4da061f2e953df479b126b9263f0e845bce0ec.tar.gz
kernel-qcow2-linux-7c4da061f2e953df479b126b9263f0e845bce0ec.tar.xz
kernel-qcow2-linux-7c4da061f2e953df479b126b9263f0e845bce0ec.zip
mm/slab_common.c: use kmem_cache_free()
Here, free memory is allocated using kmem_cache_zalloc. So, use kmem_cache_free instead of kfree. This is done using Coccinelle and semantic patch used is as follows: @@ expression x,E,c; @@ x = \(kmem_cache_alloc\|kmem_cache_zalloc\|kmem_cache_alloc_node\)(c,...) ... when != x = E when != &x ?-kfree(x) +kmem_cache_free(c,x) Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com> Acked-by: Christoph Lameter <cl@linux.com> Cc: Pekka Enberg <penberg@kernel.org> Acked-by: David Rientjes <rientjes@google.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmstat.c')
0 files changed, 0 insertions, 0 deletions