Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 276a2439 authored by Wanpeng Li's avatar Wanpeng Li Committed by Pekka Enberg
Browse files

mm/slab: Give s_next and s_stop slab-specific names



Give s_next and s_stop slab-specific names instead of exporting
"s_next" and "s_stop".

Signed-off-by: default avatarWanpeng Li <liwanp@linux.vnet.ibm.com>
Signed-off-by: default avatarPekka Enberg <penberg@kernel.org>
parent c1e854e9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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,
};

+2 −2
Original line number Diff line number Diff line
@@ -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);
+4 −4
Original line number Diff line number Diff line
@@ -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,
};