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.
Reviewed-by: Christoph Lameter <cl@xxxxxxxxx>