[PATCH] kmemleak: Rename kmemleak_panic to kmemleak_stop



This is to avoid the confusion created by the "panic" word.

Signed-off-by: Catalin Marinas <catalin.marinas@xxxxxxx>
---

(following Pekka's suggestion)

mm/kmemleak.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/mm/kmemleak.c b/mm/kmemleak.c
index 25e2034..c1f538e 100644
--- a/mm/kmemleak.c
+++ b/mm/kmemleak.c
@@ -251,7 +251,7 @@ static void kmemleak_disable(void);
* recovered from. Kkmemleak will be disabled and further allocation/freeing
* tracing no longer available.
*/
-#define kmemleak_panic(x...) do { \
+#define kmemleak_stop(x...) do { \
kmemleak_warn(x); \
kmemleak_disable(); \
} while (0)
@@ -467,8 +467,8 @@ static void create_object(unsigned long ptr, size_t size, int min_count,

object = kmem_cache_alloc(object_cache, gfp & GFP_KMEMLEAK_MASK);
if (!object) {
- kmemleak_panic("kmemleak: Cannot allocate a kmemleak_object "
- "structure\n");
+ kmemleak_stop("kmemleak: Cannot allocate a kmemleak_object "
+ "structure\n");
return;
}

@@ -527,8 +527,8 @@ static void create_object(unsigned long ptr, size_t size, int min_count,
if (node != &object->tree_node) {
unsigned long flags;

- kmemleak_panic("kmemleak: Cannot insert 0x%lx into the object "
- "search tree (already existing)\n", ptr);
+ kmemleak_stop("kmemleak: Cannot insert 0x%lx into the object "
+ "search tree (already existing)\n", ptr);
object = lookup_object(ptr, 1);
spin_lock_irqsave(&object->lock, flags);
dump_object_info(object);
@@ -699,7 +699,7 @@ static void log_early(int op_type, const void *ptr, size_t size,
struct early_log *log;

if (crt_early_log >= ARRAY_SIZE(early_log)) {
- kmemleak_panic("kmemleak: Early log buffer exceeded\n");
+ kmemleak_stop("kmemleak: Early log buffer exceeded\n");
return;
}



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: ASCII code
    ... Did you read the part about how ChrW & AscW will create IL directly, ... I believe your confusion is steaming from you consider ChrW to be a VB.NET ... I say suboptimal subset, as I suspect you also avoid actual keywords, such ... IMHO its "better" to fully learn a language so that I can fully leverage the ...
    (microsoft.public.dotnet.languages.vb)
  • Re: compilation problem with module function interface definition
    ... >> decimal floats start appearing, it would be wise for users to avoid ... > for numeric literals was a decimal KIND (as previously suggested ... I guess I sort of passed over that suggestion because I don't ...
    (comp.lang.fortran)
  • Re: Computer name on welcome screen
    ... Okay, to avoid any further confusion, I do not know its name but this is ... That login screen you posted the link to is called KDM (the KDE Display ... Manager, also known as the Login Manager). ...
    (alt.os.linux.suse)
  • Re: Perennial suggestion to split freebsd-stable into version-specific lists
    ... I make this suggestion every time there is a new major release coming, ... One could argue that with the 2 active stable branches that we have ... I can't say I have noted any particular confusion here, ... names, freebsd-6@, freebsd-7@, and freebsd-8@. ...
    (freebsd-stable)
  • Re: May a visual "Mind Map" of all MS products for dummies like me.
    ... The confusion seems to be entirely in your court.. ... > This post is a suggestion for Microsoft, ... To vote for this suggestion, ... > click "I Agree" in the message pane. ...
    (microsoft.public.office.misc)