]> Gentwo Git Trees - linux/.git/commit
slab: Reuse first bit for OBJEXTS_ALLOC_FAIL
authorAlexei Starovoitov <ast@kernel.org>
Tue, 9 Sep 2025 01:00:06 +0000 (18:00 -0700)
committerVlastimil Babka <vbabka@suse.cz>
Mon, 29 Sep 2025 07:42:36 +0000 (09:42 +0200)
commit7612833192d56af86061de8ab51989b75daf5b0d
tree530bd3ff55eddd118db3c0eeafdd37f3e71591bf
parent83382af9ddc3cb0ef43f67d049b461720ad785e6
slab: Reuse first bit for OBJEXTS_ALLOC_FAIL

Since the combination of valid upper bits in slab->obj_exts with
OBJEXTS_ALLOC_FAIL bit can never happen,
use OBJEXTS_ALLOC_FAIL == (1ull << 0) as a magic sentinel
instead of (1ull << 2) to free up bit 2.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Shakeel Butt <shakeel.butt@linux.dev>
Reviewed-by: Harry Yoo <harry.yoo@oracle.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
include/linux/memcontrol.h
mm/slub.c