Skip to contentSkip to conversation

slab: remove PARTIAL_NODE slab_state

PATCH In review Chengming Zhou 2 participants 2 messages Mar 5, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 slab: remove PARTIAL_NODE slab_state

The PARTIAL_NODE slab_state has gone with SLAB removed, so just remove it.

---
 mm/slab.h                  | 1 -
 tools/include/linux/slab.h | 1 -
 2 files changed, 2 deletions(-)
mm/slab.h +0 -1
index 96cb74be4b69..d2bc9b191222 100644
@@ -363,7 +363,6 @@ static inline int objs_per_slab(const struct kmem_cache *cache,
 enum slab_state {
 	DOWN,			/* No slab functionality yet */
 	PARTIAL,		/* SLUB: kmem_cache_node available */
-	PARTIAL_NODE,		/* SLAB: kmalloc size for node struct available */
 	UP,			/* Slab caches usable but not all extras yet */
 	FULL			/* Everything is working */
 };
tools/include/linux/slab.h +0 -1
index 311759ea25e9..51b25e9c4ec7 100644
@@ -18,7 +18,6 @@ bool slab_is_available(void);
 enum slab_state {
 	DOWN,
 	PARTIAL,
-	PARTIAL_NODE,
 	UP,
 	FULL
 };
Signature · 1 line
2.40.1
#1 lore raw
Quoted 4 lines · Chengming Zhou

The PARTIAL_NODE slab_state has gone with SLAB removed, so just remove it.

Thanks, queued.

Quoted 29 lines
---
 mm/slab.h                  | 1 -
 tools/include/linux/slab.h | 1 -
 2 files changed, 2 deletions(-)
mm/slab.h +0 -1
index 96cb74be4b69..d2bc9b191222 100644
@@ -363,7 +363,6 @@ static inline int objs_per_slab(const struct kmem_cache *cache,
 enum slab_state {
 	DOWN,			/* No slab functionality yet */
 	PARTIAL,		/* SLUB: kmem_cache_node available */
-	PARTIAL_NODE,		/* SLAB: kmalloc size for node struct available */
 	UP,			/* Slab caches usable but not all extras yet */
 	FULL			/* Everything is working */
 };
tools/include/linux/slab.h +0 -1
index 311759ea25e9..51b25e9c4ec7 100644
@@ -18,7 +18,6 @@ bool slab_is_available(void);
 enum slab_state {
 	DOWN,
 	PARTIAL,
-	PARTIAL_NODE,
 	UP,
 	FULL
 };