Re: [PATCH v1] mm:slab:use kmem_cache_free() to free

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux