Skip to content

Commit

Permalink
mm/slab: Give s_next and s_stop slab-specific names
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wanpeng Li authored and penberg committed Jul 8, 2013
1 parent c1e854e commit 276a243
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions mm/slab.c
Expand Up @@ -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,
};

Expand Down
4 changes: 2 additions & 2 deletions mm/slab.h
Expand Up @@ -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);
8 changes: 4 additions & 4 deletions mm/slab_common.c
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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,
};

Expand Down

0 comments on commit 276a243

Please sign in to comment.