linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "Pekka Enberg" <penberg@cs.helsinki.fi>
To: Christoph Hellwig <hch@lst.de>
Cc: akpm@osdl.org, viro@zeniv.linux.org.uk, linux-mm@kvack.org
Subject: Re: [PATCH 3/3] slab: account leaks to caller version of kmalloc_node
Date: Fri, 4 Aug 2006 19:03:14 +0300	[thread overview]
Message-ID: <84144f020608040903sdc164edreed3c6c25b7e8c8d@mail.gmail.com> (raw)
In-Reply-To: <20060804151554.GC29422@lst.de>

On 8/4/06, Christoph Hellwig <hch@lst.de> wrote:
> +#ifndef CONFIG_DEBUG_SLAB
> +void *__kmalloc_node(size_t size, gfp_t flags, int node)
> +{
> +       return __do_kmalloc_node(size, flags, node,
> +                       __builtin_return_address(0));
> +}
> +EXPORT_SYMBOL(__kmalloc_node);
> +
> +void *__kmalloc_node_track_caller(size_t size, gfp_t flags,
> +               int node, void *caller)
> +{
> +       return __do_kmalloc_node(size, flags, node, caller);
> +}
> +EXPORT_SYMBOL(__kmalloc_node_track_caller);
> +#else
> +void *__kmalloc_node(size_t size, gfp_t flags, int node)
> +{
> +       return __do_kmalloc_node(size, flags, node, NULL);
> +}
> +EXPORT_SYMBOL(__kmalloc_node);
>  #endif

You are passing NULL when CONFIG_DEBUG_SLAB is enabled but you want it
the other way around.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

      reply	other threads:[~2006-08-04 16:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-04 15:15 Christoph Hellwig
2006-08-04 16:03 ` Pekka Enberg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=84144f020608040903sdc164edreed3c6c25b7e8c8d@mail.gmail.com \
    --to=penberg@cs.helsinki.fi \
    --cc=akpm@osdl.org \
    --cc=hch@lst.de \
    --cc=linux-mm@kvack.org \
    --cc=viro@zeniv.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox