slub: let need_slab_obj_exts() return false if SLAB_NO_OBJ_EXT is set

SLAB_NO_OBJ_EXT is set for boot caches, but need_slab_obj_exts() doesn't
check this flag. We should return false unconditionally when
SLAB_NO_OBJ_EXT is set.

Signed-off-by: Hao Li <hao.li@linux.dev>
Acked-by: Harry Yoo <harry.yoo@oracle.com>
Link: https://patch.msgid.link/20260205120709.425719-1-hao.li@linux.dev
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
This commit is contained in:
Hao Li 2026-02-05 20:07:23 +08:00 • committed by Vlastimil Babka
commit 98e99fc4ad