Skip to content

Commit 276a243

Browse files
Wanpeng Lipenberg
authored andcommitted
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: Wanpeng Li <liwanp@linux.vnet.ibm.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
1 parent c1e854e commit 276a243

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

mm/slab.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4440,8 +4440,8 @@ static int leaks_show(struct seq_file *m, void *p)
44404440

44414441
static const struct seq_operations slabstats_op = {
44424442
.start = leaks_start,
4443-
.next = s_next,
4444-
.stop = s_stop,
4443+
.next = slab_next,
4444+
.stop = slab_stop,
44454445
.show = leaks_show,
44464446
};
44474447

mm/slab.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,5 +272,5 @@ struct kmem_cache_node {
272272

273273
};
274274

275-
void *s_next(struct seq_file *m, void *p, loff_t *pos);
276-
void s_stop(struct seq_file *m, void *p);
275+
void *slab_next(struct seq_file *m, void *p, loff_t *pos);
276+
void slab_stop(struct seq_file *m, void *p);

mm/slab_common.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -536,12 +536,12 @@ static void *s_start(struct seq_file *m, loff_t *pos)
536536
return seq_list_start(&slab_caches, *pos);
537537
}
538538

539-
void *s_next(struct seq_file *m, void *p, loff_t *pos)
539+
void *slab_next(struct seq_file *m, void *p, loff_t *pos)
540540
{
541541
return seq_list_next(p, &slab_caches, pos);
542542
}
543543

544-
void s_stop(struct seq_file *m, void *p)
544+
void slab_stop(struct seq_file *m, void *p)
545545
{
546546
mutex_unlock(&slab_mutex);
547547
}
@@ -618,8 +618,8 @@ static int s_show(struct seq_file *m, void *p)
618618
*/
619619
static const struct seq_operations slabinfo_op = {
620620
.start = s_start,
621-
.next = s_next,
622-
.stop = s_stop,
621+
.next = slab_next,
622+
.stop = slab_stop,
623623
.show = s_show,
624624
};
625625

0 commit comments

Comments
 (0)