[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.22.394.2009170935020.1492@www.lameter.com>
Date: Thu, 17 Sep 2020 09:37:10 +0000 (UTC)
From: Christopher Lameter <cl@...ux.com>
To: Marco Elver <elver@...gle.com>
cc: akpm@...ux-foundation.org, glider@...gle.com, hpa@...or.com,
paulmck@...nel.org, andreyknvl@...gle.com, aryabinin@...tuozzo.com,
luto@...nel.org, bp@...en8.de, catalin.marinas@....com,
dave.hansen@...ux.intel.com, rientjes@...gle.com,
dvyukov@...gle.com, edumazet@...gle.com,
gregkh@...uxfoundation.org, mingo@...hat.com, jannh@...gle.com,
Jonathan.Cameron@...wei.com, corbet@....net,
iamjoonsoo.kim@....com, keescook@...omium.org,
mark.rutland@....com, penberg@...nel.org, peterz@...radead.org,
cai@....pw, tglx@...utronix.de, vbabka@...e.cz, will@...nel.org,
x86@...nel.org, linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org, kasan-dev@...glegroups.com,
linux-arm-kernel@...ts.infradead.org, linux-mm@...ck.org
Subject: Re: [PATCH v2 04/10] mm, kfence: insert KFENCE hooks for SLAB
On Tue, 15 Sep 2020, Marco Elver wrote:
> @@ -3206,7 +3207,7 @@ static void *____cache_alloc_node(struct kmem_cache *cachep, gfp_t flags,
> }
>
> static __always_inline void *
> -slab_alloc_node(struct kmem_cache *cachep, gfp_t flags, int nodeid,
> +slab_alloc_node(struct kmem_cache *cachep, gfp_t flags, int nodeid, size_t orig_size,
> unsigned long caller)
> {
The size of the object is available via a field in kmem_cache. And a
pointer to the current kmem_cache is already passed to the function. Why
is there a need to add an additional parameter?
Powered by blists - more mailing lists