aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/slub_def.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h
index 3b361b2906bd..0a7ae25f7e8d 100644
--- a/include/linux/slub_def.h
+++ b/include/linux/slub_def.h
@@ -11,6 +11,13 @@
11#include <linux/workqueue.h> 11#include <linux/workqueue.h>
12#include <linux/kobject.h> 12#include <linux/kobject.h>
13 13
14struct kmem_cache_cpu {
15 void **freelist;
16 struct page *page;
17 int node;
18 /* Lots of wasted space */
19} ____cacheline_aligned_in_smp;
20
14struct kmem_cache_node { 21struct kmem_cache_node {
15 spinlock_t list_lock; /* Protect partial list and nr_partial */ 22 spinlock_t list_lock; /* Protect partial list and nr_partial */
16 unsigned long nr_partial; 23 unsigned long nr_partial;
@@ -54,7 +61,7 @@ struct kmem_cache {
54 int defrag_ratio; 61 int defrag_ratio;
55 struct kmem_cache_node *node[MAX_NUMNODES]; 62 struct kmem_cache_node *node[MAX_NUMNODES];
56#endif 63#endif
57 struct page *cpu_slab[NR_CPUS]; 64 struct kmem_cache_cpu cpu_slab[NR_CPUS];
58}; 65};
59 66
60/* 67/*