]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mm/slab: Give s_next and s_stop slab-specific names
authorWanpeng Li <liwanp@linux.vnet.ibm.com>
Mon, 8 Jul 2013 00:08:28 +0000 (08:08 +0800)
committerPekka Enberg <penberg@kernel.org>
Mon, 8 Jul 2013 08:02:17 +0000 (11:02 +0300)
Give s_next and s_stop slab-specific names instead of exporting
"s_next" and "s_stop".

Signed-off-by: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
mm/slab.c
mm/slab.h
mm/slab_common.c

index 9bf225162fcb2f50bdc7a8d3e681fb4a87751c50..57ab42297d96b402775689c004e1cc5ec3491b15 100644 (file)
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -4440,8 +4440,8 @@ static int leaks_show(struct seq_file *m, void *p)
 
 static const struct seq_operations slabstats_op = {
        .start = leaks_start,
-       .next = s_next,
-       .stop = s_stop,
+       .next = slab_next,
+       .stop = slab_stop,
        .show = leaks_show,
 };
 
index 95c88604aab7e3958a526633c0691ef7ce9f0a87..620ceeddbe1ad74cfa5fb7bc5e2fc2d13f7e3191 100644 (file)
--- a/mm/slab.h
+++ b/mm/slab.h
@@ -272,5 +272,5 @@ struct kmem_cache_node {
 
 };
 
-void *s_next(struct seq_file *m, void *p, loff_t *pos);
-void s_stop(struct seq_file *m, void *p);
+void *slab_next(struct seq_file *m, void *p, loff_t *pos);
+void slab_stop(struct seq_file *m, void *p);
index 13ae037c71d4d1aab1cf58989f80e97211ea3be4..eacdffaf71c92317d0145960e87b06ced89c4777 100644 (file)
@@ -536,12 +536,12 @@ static void *s_start(struct seq_file *m, loff_t *pos)
        return seq_list_start(&slab_caches, *pos);
 }
 
-void *s_next(struct seq_file *m, void *p, loff_t *pos)
+void *slab_next(struct seq_file *m, void *p, loff_t *pos)
 {
        return seq_list_next(p, &slab_caches, pos);
 }
 
-void s_stop(struct seq_file *m, void *p)
+void slab_stop(struct seq_file *m, void *p)
 {
        mutex_unlock(&slab_mutex);
 }
@@ -618,8 +618,8 @@ static int s_show(struct seq_file *m, void *p)
  */
 static const struct seq_operations slabinfo_op = {
        .start = s_start,
-       .next = s_next,
-       .stop = s_stop,
+       .next = slab_next,
+       .stop = slab_stop,
        .show = s_show,
 };