[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a85a0358-fd42-a269-9bde-216a9b0520c5@suse.cz>
Date: Tue, 26 Apr 2022 17:49:08 +0200
From: Vlastimil Babka <vbabka@...e.cz>
To: Hyeonggon Yoo <42.hyeyoo@...il.com>
Cc: Marco Elver <elver@...gle.com>,
Matthew WilCox <willy@...radead.org>,
Christoph Lameter <cl@...ux.com>,
Pekka Enberg <penberg@...nel.org>,
David Rientjes <rientjes@...gle.com>,
Joonsoo Kim <iamjoonsoo.kim@....com>,
Andrew Morton <akpm@...ux-foundation.org>,
Roman Gushchin <roman.gushchin@...ux.dev>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 04/23] mm/slab_common: cleanup kmalloc_track_caller()
On 4/14/22 10:57, Hyeonggon Yoo wrote:
> Make kmalloc_track_caller() wrapper of kmalloc_node_track_caller().
>
> Signed-off-by: Hyeonggon Yoo <42.hyeyoo@...il.com>
> ---
> include/linux/slab.h | 17 ++++++++---------
> mm/slab.c | 6 ------
> mm/slob.c | 6 ------
> mm/slub.c | 22 ----------------------
> 4 files changed, 8 insertions(+), 43 deletions(-)
>
> diff --git a/include/linux/slab.h b/include/linux/slab.h
> index a3b9d4c20d7e..acdb4b7428f9 100644
> --- a/include/linux/slab.h
> +++ b/include/linux/slab.h
> @@ -639,6 +639,12 @@ static inline __alloc_size(1, 2) void *kcalloc(size_t n, size_t size, gfp_t flag
> return kmalloc_array(n, size, flags | __GFP_ZERO);
> }
>
> +extern void *__kmalloc_node_track_caller(size_t size, gfp_t flags, int node,
> + unsigned long caller) __alloc_size(1);
Update: in v3 remove the extern, it's not necessary and the kernel is slowly
getting rid of them.
Powered by blists - more mailing lists