[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e29f5bb2-6daf-4542-9a56-b2e2d9e2d202@suse.cz>
Date: Tue, 27 Aug 2024 16:49:58 +0200
From: Vlastimil Babka <vbabka@...e.cz>
To: "Christoph Lameter (Ampere)" <cl@...two.org>, Yan Zhen <yanzhen@...o.com>
Cc: penberg@...nel.org, rientjes@...gle.com, iamjoonsoo.kim@....com,
akpm@...ux-foundation.org, roman.gushchin@...ux.dev, 42.hyeyoo@...il.com,
linux-mm@...ck.org, linux-kernel@...r.kernel.org, opensource.kernel@...o.com
Subject: Re: [PATCH v1] mm:slab:use kmem_cache_free() to free
On 8/22/24 18:59, Christoph Lameter (Ampere) wrote:
> On Thu, 22 Aug 2024, Yan Zhen wrote:
>
>> The kmem_cache_alloc() is typically used to free memory allocated through
>> the kernel memory cache (slab allocator).
>
> Well yes but since we removed SLOB we can use kfree() on any slab object.
>
>> Using kmem_cache_free() for deallocation may be more reasonable.
>
>
> It is more symmetric and looks better.
Right, added to slab/for-next, thanks.
> Reviewed-by: Christoph Lameter <cl@...ux.com>
Powered by blists - more mailing lists