Skip to content
Commit 7338999c authored by Hyunmin Lee's avatar Hyunmin Lee Committed by Vlastimil Babka
Browse files

mm/slub: remove the check for NULL kmalloc_caches



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: default avatarHyunmin Lee <hyunminlr@gmail.com>
Co-developed-by: default avatarJeungwoo Yoo <casionwoo@gmail.com>
Signed-off-by: default avatarJeungwoo Yoo <casionwoo@gmail.com>
Co-developed-by: default avatarSangyun Kim <sangyun.kim@snu.ac.kr>
Signed-off-by: default avatarSangyun Kim <sangyun.kim@snu.ac.kr>
Cc: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Cc: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Reviewed-by: default avatarChristoph Lameter <cl@linux.com>
Acked-by: default avatarDavid Rientjes <rientjes@google.com>
Signed-off-by: default avatarVlastimil Babka <vbabka@suse.cz>
parent 306c4ac9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment