[PATCH 6/6] mm/slub: rename cpu_partial_slab sysfs
From: Wei Yang
Date: Wed May 17 2017 - 10:13:06 EST
Apply the sysfs pattern
xxx_slabs
to CPU_PARTIAL slabs.
Signed-off-by: Wei Yang <richard.weiyang@xxxxxxxxx>
---
mm/slub.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/mm/slub.c b/mm/slub.c
index eb0eaa0239fd..93ff334b725e 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -4988,7 +4988,7 @@ static ssize_t partial_slabs_total_objects_show(struct kmem_cache *s, char *buf)
}
SLAB_ATTR_RO(partial_slabs_total_objects);
-static ssize_t slabs_cpu_partial_show(struct kmem_cache *s, char *buf)
+static ssize_t cpu_partial_slabs_show(struct kmem_cache *s, char *buf)
{
int objects = 0;
int pages = 0;
@@ -5019,7 +5019,7 @@ static ssize_t slabs_cpu_partial_show(struct kmem_cache *s, char *buf)
#endif
return len + sprintf(buf + len, "\n");
}
-SLAB_ATTR_RO(slabs_cpu_partial);
+SLAB_ATTR_RO(cpu_partial_slabs);
static ssize_t reclaim_account_show(struct kmem_cache *s, char *buf)
{
@@ -5377,7 +5377,7 @@ static struct attribute *slab_attrs[] = {
&destroy_by_rcu_attr.attr,
&shrink_attr.attr,
&reserved_attr.attr,
- &slabs_cpu_partial_attr.attr,
+ &cpu_partial_slabs_attr.attr,
#ifdef CONFIG_SLUB_DEBUG
&slabs_total_objects_attr.attr,
&slabs_attr.attr,
--
2.11.0