Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

slab: delete useless RED_INACTIVE and RED_ACTIVE

These seem useless since we use the SLUB_RED_INACTIVE and SLUB_RED_ACTIVE,
so just delete them, no functional change.

Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Chengming Zhou <chengming.zhou@linux.dev>
Reviewed-by: Christoph Lameter (Ampere) <cl@linux.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>

authored by

Chengming Zhou and committed by
Vlastimil Babka
4a24bbab adef2aea

+6 -12
+2 -5
include/linux/poison.h
··· 38 38 * Magic nums for obj red zoning. 39 39 * Placed in the first word before and the first word after an obj. 40 40 */ 41 - #define RED_INACTIVE 0x09F911029D74E35BULL /* when obj is inactive */ 42 - #define RED_ACTIVE 0xD84156C5635688C0ULL /* when obj is active */ 43 - 44 - #define SLUB_RED_INACTIVE 0xbb 45 - #define SLUB_RED_ACTIVE 0xcc 41 + #define SLUB_RED_INACTIVE 0xbb /* when obj is inactive */ 42 + #define SLUB_RED_ACTIVE 0xcc /* when obj is active */ 46 43 47 44 /* ...and for poisoning */ 48 45 #define POISON_INUSE 0x5a /* for use-uninitialised poisoning */
+2 -2
mm/slub.c
··· 1228 1228 * Padding is extended by another word if Redzoning is enabled and 1229 1229 * object_size == inuse. 1230 1230 * 1231 - * We fill with 0xbb (RED_INACTIVE) for inactive objects and with 1232 - * 0xcc (RED_ACTIVE) for objects in use. 1231 + * We fill with 0xbb (SLUB_RED_INACTIVE) for inactive objects and with 1232 + * 0xcc (SLUB_RED_ACTIVE) for objects in use. 1233 1233 * 1234 1234 * object + s->inuse 1235 1235 * Meta data starts here.
+2 -5
tools/include/linux/poison.h
··· 47 47 * Magic nums for obj red zoning. 48 48 * Placed in the first word before and the first word after an obj. 49 49 */ 50 - #define RED_INACTIVE 0x09F911029D74E35BULL /* when obj is inactive */ 51 - #define RED_ACTIVE 0xD84156C5635688C0ULL /* when obj is active */ 52 - 53 - #define SLUB_RED_INACTIVE 0xbb 54 - #define SLUB_RED_ACTIVE 0xcc 50 + #define SLUB_RED_INACTIVE 0xbb /* when obj is inactive */ 51 + #define SLUB_RED_ACTIVE 0xcc /* when obj is active */ 55 52 56 53 /* ...and for poisoning */ 57 54 #define POISON_INUSE 0x5a /* for use-uninitialised poisoning */