aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/slab.c10
-rw-r--r--mm/slab.h3
-rw-r--r--mm/slab_common.c4
3 files changed, 5 insertions, 12 deletions
diff --git a/mm/slab.c b/mm/slab.c
index c9b4da9a1fe5..4a907a072669 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -4438,16 +4438,6 @@ static int leaks_show(struct seq_file *m, void *p)
4438 return 0; 4438 return 0;
4439} 4439}
4440 4440
4441static void *s_next(struct seq_file *m, void *p, loff_t *pos)
4442{
4443 return seq_list_next(p, &slab_caches, pos);
4444}
4445
4446static void s_stop(struct seq_file *m, void *p)
4447{
4448 mutex_unlock(&slab_mutex);
4449}
4450
4451static const struct seq_operations slabstats_op = { 4441static const struct seq_operations slabstats_op = {
4452 .start = leaks_start, 4442 .start = leaks_start,
4453 .next = s_next, 4443 .next = s_next,
diff --git a/mm/slab.h b/mm/slab.h
index f96b49e4704e..95c88604aab7 100644
--- a/mm/slab.h
+++ b/mm/slab.h
@@ -271,3 +271,6 @@ struct kmem_cache_node {
271#endif 271#endif
272 272
273}; 273};
274
275void *s_next(struct seq_file *m, void *p, loff_t *pos);
276void s_stop(struct seq_file *m, void *p);
diff --git a/mm/slab_common.c b/mm/slab_common.c
index d2517b05d5bc..68518eb67229 100644
--- a/mm/slab_common.c
+++ b/mm/slab_common.c
@@ -529,12 +529,12 @@ static void *s_start(struct seq_file *m, loff_t *pos)
529 return seq_list_start(&slab_caches, *pos); 529 return seq_list_start(&slab_caches, *pos);
530} 530}
531 531
532static void *s_next(struct seq_file *m, void *p, loff_t *pos) 532void *s_next(struct seq_file *m, void *p, loff_t *pos)
533{ 533{
534 return seq_list_next(p, &slab_caches, pos); 534 return seq_list_next(p, &slab_caches, pos);
535} 535}
536 536
537static void s_stop(struct seq_file *m, void *p) 537void s_stop(struct seq_file *m, void *p)
538{ 538{
539 mutex_unlock(&slab_mutex); 539 mutex_unlock(&slab_mutex);
540} 540}