Re: [PATCH v3 2/2] mm/slub: remove the check for NULL kmalloc_caches

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

 



On Wed, 24 Apr 2024, Hyunmin Lee wrote:

> If the same size kmalloc cache already exists, it should not be created
> again. So there is the check for NULL kmalloc_caches before calling the
> kmalloc creation function. However, new_kmalloc_cache() itself checks NULL
> kmalloc_cahces before cache creation. Therefore, the NULL check is not
> necessary in this function.
> 
> Signed-off-by: Hyunmin Lee <hyunminlr@xxxxxxxxx>
> Co-developed-by: Jeungwoo Yoo <casionwoo@xxxxxxxxx>
> Signed-off-by: Jeungwoo Yoo <casionwoo@xxxxxxxxx>
> Co-developed-by: Sangyun Kim <sangyun.kim@xxxxxxxxx>
> Signed-off-by: Sangyun Kim <sangyun.kim@xxxxxxxxx>
> Cc: Hyeonggon Yoo <42.hyeyoo@xxxxxxxxx>
> Cc: Gwan-gyeong Mun <gwan-gyeong.mun@xxxxxxxxx>

Acked-by: David Rientjes <rientjes@xxxxxxxxxx>




[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