mm/slub: create kmalloc 96 and 192 caches regardless cache size order
authorHyunmin Lee <hyunminlr@gmail.com>
Wed, 24 Apr 2024 14:04:21 +0000 (23:04 +0900)
committerVlastimil Babka <vbabka@suse.cz>
Thu, 2 May 2024 14:09:40 +0000 (16:09 +0200)
commit306c4ac9896b07b8872293eb224058ff83f81fac
treed420c50b747e0c2558d8fbc6320a2a5582854115
parent844776cb65a77ef27bfba2220e285940b714ae4e
mm/slub: create kmalloc 96 and 192 caches regardless cache size order

For SLAB the kmalloc caches needed to be created in ascending sizes in
order. However, the constraint is not necessary anymore because SLAB has
been removed and SLUB doesn't need to comply with the constraint. Thus,
kmalloc 96 and 192 caches can be created after the other size kmalloc
caches are created instead of checking every time to find their order to
be created. Also, this change could prevent engineers from being confused
by the removed constraint.

Signed-off-by: Hyunmin Lee <hyunminlr@gmail.com>
Co-developed-by: Jeungwoo Yoo <casionwoo@gmail.com>
Signed-off-by: Jeungwoo Yoo <casionwoo@gmail.com>
Co-developed-by: Sangyun Kim <sangyun.kim@snu.ac.kr>
Signed-off-by: Sangyun Kim <sangyun.kim@snu.ac.kr>
Cc: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Cc: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Reviewed-by: Christoph Lameter <cl@linux.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
mm/slab_common.c