* [merged] lib-update-the-kmemleak-stack-trace-for-radix-tree-allocations.patch removed from -mm tree
@ 2014-06-09 19:40 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2014-06-09 19:40 UTC (permalink / raw)
To: mm-commits, hannes, catalin.marinas
Subject: [merged] lib-update-the-kmemleak-stack-trace-for-radix-tree-allocations.patch removed from -mm tree
To: catalin.marinas@arm.com,hannes@cmpxchg.org,mm-commits@vger.kernel.org
From: akpm@linux-foundation.org
Date: Mon, 09 Jun 2014 12:40:36 -0700
The patch titled
Subject: lib/radix-tree.c: update the kmemleak stack trace for radix tree allocations
has been removed from the -mm tree. Its filename was
lib-update-the-kmemleak-stack-trace-for-radix-tree-allocations.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Catalin Marinas <catalin.marinas@arm.com>
Subject: lib/radix-tree.c: update the kmemleak stack trace for radix tree allocations
Since radix_tree_preload() stack trace is not always useful for debugging
an actual radix tree memory leak, this patch updates the kmemleak
allocation stack trace in the radix_tree_node_alloc() function.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
lib/radix-tree.c | 6 ++++++
1 file changed, 6 insertions(+)
diff -puN lib/radix-tree.c~lib-update-the-kmemleak-stack-trace-for-radix-tree-allocations lib/radix-tree.c
--- a/lib/radix-tree.c~lib-update-the-kmemleak-stack-trace-for-radix-tree-allocations
+++ a/lib/radix-tree.c
@@ -27,6 +27,7 @@
#include <linux/radix-tree.h>
#include <linux/percpu.h>
#include <linux/slab.h>
+#include <linux/kmemleak.h>
#include <linux/notifier.h>
#include <linux/cpu.h>
#include <linux/string.h>
@@ -200,6 +201,11 @@ radix_tree_node_alloc(struct radix_tree_
rtp->nodes[rtp->nr - 1] = NULL;
rtp->nr--;
}
+ /*
+ * Update the allocation stack trace as this is more useful
+ * for debugging.
+ */
+ kmemleak_update_trace(ret);
}
if (ret == NULL)
ret = kmem_cache_alloc(radix_tree_node_cachep, gfp_mask);
_
Patches currently in -mm which might be from catalin.marinas@arm.com are
origin.patch
linux-next.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-06-09 19:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-09 19:40 [merged] lib-update-the-kmemleak-stack-trace-for-radix-tree-allocations.patch removed from -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.