summaryrefslogtreecommitdiff
path: root/mm/slab.h
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2021-10-04 16:46:50 +0300
committerVlastimil Babka <vbabka@suse.cz>2022-01-06 20:06:58 +0300
commit07f910f9b7295b6a28b337fedb56e612684c5659 (patch)
tree4d52df28371b85116112567e2e66da6b2ad75d62 /mm/slab.h
parent9cc960a164f1e8491c22d0fdb57a1a50dfe5d7c0 (diff)
downloadlinux-07f910f9b7295b6a28b337fedb56e612684c5659.tar.xz
mm: Remove slab from struct page
All members of struct slab can now be removed from struct page. This shrinks the definition of struct page by 30 LOC, making it easier to understand. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to 'mm/slab.h')
-rw-r--r--mm/slab.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/mm/slab.h b/mm/slab.h
index 95b9a74a2d51..207658b200ef 100644
--- a/mm/slab.h
+++ b/mm/slab.h
@@ -67,14 +67,8 @@ struct slab {
static_assert(offsetof(struct page, pg) == offsetof(struct slab, sl))
SLAB_MATCH(flags, __page_flags);
SLAB_MATCH(compound_head, slab_list); /* Ensure bit 0 is clear */
-SLAB_MATCH(slab_list, slab_list);
#ifndef CONFIG_SLOB
SLAB_MATCH(rcu_head, rcu_head);
-SLAB_MATCH(slab_cache, slab_cache);
-#endif
-#ifdef CONFIG_SLAB
-SLAB_MATCH(s_mem, s_mem);
-SLAB_MATCH(active, active);
#endif
SLAB_MATCH(_refcount, __page_refcount);
#ifdef CONFIG_MEMCG