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>