diff options
author | Christoph Lameter <clameter@sgi.com> | 2008-02-15 18:22:21 -0500 |
---|---|---|
committer | Christoph Lameter <clameter@sgi.com> | 2008-03-03 15:22:30 -0500 |
commit | d9acf4b7b62d783d84273a61aed41a0f025b08ac (patch) | |
tree | 47bae82b68ad25cee6d6b7d3388560e481ddb5f5 | |
parent | a973e9dd1e140a65bed694a2c5c8d53e9cba1a23 (diff) |
slub: rename slab_objects to show_slab_objects
The sysfs callback is better named show_slab_objects since it is always
called from the xxx_show callbacks. We need the name for other purposes
later.
Reviewed-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Christoph Lameter <clameter@sgi.com>
-rw-r--r-- | mm/slub.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -3567,7 +3567,7 @@ enum slab_stat_type { | |||
3567 | #define SO_CPU (1 << SL_CPU) | 3567 | #define SO_CPU (1 << SL_CPU) |
3568 | #define SO_OBJECTS (1 << SL_OBJECTS) | 3568 | #define SO_OBJECTS (1 << SL_OBJECTS) |
3569 | 3569 | ||
3570 | static unsigned long slab_objects(struct kmem_cache *s, | 3570 | static unsigned long show_slab_objects(struct kmem_cache *s, |
3571 | char *buf, unsigned long flags) | 3571 | char *buf, unsigned long flags) |
3572 | { | 3572 | { |
3573 | unsigned long total = 0; | 3573 | unsigned long total = 0; |
@@ -3730,25 +3730,25 @@ SLAB_ATTR_RO(aliases); | |||
3730 | 3730 | ||
3731 | static ssize_t slabs_show(struct kmem_cache *s, char *buf) | 3731 | static ssize_t slabs_show(struct kmem_cache *s, char *buf) |
3732 | { | 3732 | { |
3733 | return slab_objects(s, buf, SO_FULL|SO_PARTIAL|SO_CPU); | 3733 | return show_slab_objects(s, buf, SO_FULL|SO_PARTIAL|SO_CPU); |
3734 | } | 3734 | } |
3735 | SLAB_ATTR_RO(slabs); | 3735 | SLAB_ATTR_RO(slabs); |
3736 | 3736 | ||
3737 | static ssize_t partial_show(struct kmem_cache *s, char *buf) | 3737 | static ssize_t partial_show(struct kmem_cache *s, char *buf) |
3738 | { | 3738 | { |
3739 | return slab_objects(s, buf, SO_PARTIAL); | 3739 | return show_slab_objects(s, buf, SO_PARTIAL); |
3740 | } | 3740 | } |
3741 | SLAB_ATTR_RO(partial); | 3741 | SLAB_ATTR_RO(partial); |
3742 | 3742 | ||
3743 | static ssize_t cpu_slabs_show(struct kmem_cache *s, char *buf) | 3743 | static ssize_t cpu_slabs_show(struct kmem_cache *s, char *buf) |
3744 | { | 3744 | { |
3745 | return slab_objects(s, buf, SO_CPU); | 3745 | return show_slab_objects(s, buf, SO_CPU); |
3746 | } | 3746 | } |
3747 | SLAB_ATTR_RO(cpu_slabs); | 3747 | SLAB_ATTR_RO(cpu_slabs); |
3748 | 3748 | ||
3749 | static ssize_t objects_show(struct kmem_cache *s, char *buf) | 3749 | static ssize_t objects_show(struct kmem_cache *s, char *buf) |
3750 | { | 3750 | { |
3751 | return slab_objects(s, buf, SO_FULL|SO_PARTIAL|SO_CPU|SO_OBJECTS); | 3751 | return show_slab_objects(s, buf, SO_FULL|SO_PARTIAL|SO_CPU|SO_OBJECTS); |
3752 | } | 3752 | } |
3753 | SLAB_ATTR_RO(objects); | 3753 | SLAB_ATTR_RO(objects); |
3754 | 3754 | ||