aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slab.h
diff options
context:
space:
mode:
authorGlauber Costa <glommer@parallels.com>2012-10-19 10:20:25 -0400
committerPekka Enberg <penberg@kernel.org>2012-10-24 02:37:41 -0400
commitb7454ad3cfc3043c5264729a6204f049fe1f34b1 (patch)
treedbfe665034b9c3f3e79fa9410038ecc6f44e61bb /mm/slab.h
parentddffeb8c4d0331609ef2581d84de4d763607bd37 (diff)
mm/sl[au]b: Move slabinfo processing to slab_common.c
This patch moves all the common machinery to slabinfo processing to slab_common.c. We can do better by noticing that the output is heavily common, and having the allocators to just provide finished information about this. But after this first step, this can be done easier. Signed-off-by: Glauber Costa <glommer@parallels.com> Acked-by: Christoph Lameter <cl@linux.com> CC: David Rientjes <rientjes@google.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'mm/slab.h')
-rw-r--r--mm/slab.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/mm/slab.h b/mm/slab.h
index 7deeb449a301..dc78101962a1 100644
--- a/mm/slab.h
+++ b/mm/slab.h
@@ -47,4 +47,12 @@ static inline struct kmem_cache *__kmem_cache_alias(const char *name, size_t siz
47 47
48int __kmem_cache_shutdown(struct kmem_cache *); 48int __kmem_cache_shutdown(struct kmem_cache *);
49 49
50struct seq_file;
51struct file;
52void print_slabinfo_header(struct seq_file *m);
53
54int slabinfo_show(struct seq_file *m, void *p);
55
56ssize_t slabinfo_write(struct file *file, const char __user *buffer,
57 size_t count, loff_t *ppos);
50#endif 58#endif