diff options
-rw-r--r-- | mm/slab.c | 10 | ||||
-rw-r--r-- | mm/slab.h | 3 | ||||
-rw-r--r-- | mm/slab_common.c | 4 |
3 files changed, 5 insertions, 12 deletions
@@ -4438,16 +4438,6 @@ static int leaks_show(struct seq_file *m, void *p) | |||
4438 | return 0; | 4438 | return 0; |
4439 | } | 4439 | } |
4440 | 4440 | ||
4441 | static void *s_next(struct seq_file *m, void *p, loff_t *pos) | ||
4442 | { | ||
4443 | return seq_list_next(p, &slab_caches, pos); | ||
4444 | } | ||
4445 | |||
4446 | static void s_stop(struct seq_file *m, void *p) | ||
4447 | { | ||
4448 | mutex_unlock(&slab_mutex); | ||
4449 | } | ||
4450 | |||
4451 | static const struct seq_operations slabstats_op = { | 4441 | static const struct seq_operations slabstats_op = { |
4452 | .start = leaks_start, | 4442 | .start = leaks_start, |
4453 | .next = s_next, | 4443 | .next = s_next, |
@@ -271,3 +271,6 @@ struct kmem_cache_node { | |||
271 | #endif | 271 | #endif |
272 | 272 | ||
273 | }; | 273 | }; |
274 | |||
275 | void *s_next(struct seq_file *m, void *p, loff_t *pos); | ||
276 | void 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 | ||
532 | static void *s_next(struct seq_file *m, void *p, loff_t *pos) | 532 | void *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 | ||
537 | static void s_stop(struct seq_file *m, void *p) | 537 | void s_stop(struct seq_file *m, void *p) |
538 | { | 538 | { |
539 | mutex_unlock(&slab_mutex); | 539 | mutex_unlock(&slab_mutex); |
540 | } | 540 | } |