diff options
author | David Rientjes <rientjes@google.com> | 2009-02-25 02:16:35 -0500 |
---|---|---|
committer | Pekka Enberg <penberg@cs.helsinki.fi> | 2009-02-25 02:16:35 -0500 |
commit | c0bdb232b23b51c23e551041510ad6bea5ce5a92 (patch) | |
tree | c904332ff38d1dac3450734a47997b6d0eca07fc /mm/slub.c | |
parent | 73d342b169db700b5a6ad626fe4b86911efec8db (diff) |
slub: rename calculate_min_partial() to set_min_partial()
As suggested by Christoph Lameter, rename calculate_min_partial() to
set_min_partial() as the function doesn't really do any calculations.
Cc: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Diffstat (limited to 'mm/slub.c')
-rw-r--r-- | mm/slub.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2170,7 +2170,7 @@ static int init_kmem_cache_nodes(struct kmem_cache *s, gfp_t gfpflags) | |||
2170 | } | 2170 | } |
2171 | #endif | 2171 | #endif |
2172 | 2172 | ||
2173 | static void calculate_min_partial(struct kmem_cache *s, unsigned long min) | 2173 | static void set_min_partial(struct kmem_cache *s, unsigned long min) |
2174 | { | 2174 | { |
2175 | if (min < MIN_PARTIAL) | 2175 | if (min < MIN_PARTIAL) |
2176 | min = MIN_PARTIAL; | 2176 | min = MIN_PARTIAL; |
@@ -2321,7 +2321,7 @@ static int kmem_cache_open(struct kmem_cache *s, gfp_t gfpflags, | |||
2321 | * The larger the object size is, the more pages we want on the partial | 2321 | * The larger the object size is, the more pages we want on the partial |
2322 | * list to avoid pounding the page allocator excessively. | 2322 | * list to avoid pounding the page allocator excessively. |
2323 | */ | 2323 | */ |
2324 | calculate_min_partial(s, ilog2(s->size)); | 2324 | set_min_partial(s, ilog2(s->size)); |
2325 | s->refcount = 1; | 2325 | s->refcount = 1; |
2326 | #ifdef CONFIG_NUMA | 2326 | #ifdef CONFIG_NUMA |
2327 | s->remote_node_defrag_ratio = 1000; | 2327 | s->remote_node_defrag_ratio = 1000; |
@@ -3853,7 +3853,7 @@ static ssize_t min_partial_store(struct kmem_cache *s, const char *buf, | |||
3853 | if (err) | 3853 | if (err) |
3854 | return err; | 3854 | return err; |
3855 | 3855 | ||
3856 | calculate_min_partial(s, min); | 3856 | set_min_partial(s, min); |
3857 | return length; | 3857 | return length; |
3858 | } | 3858 | } |
3859 | SLAB_ATTR(min_partial); | 3859 | SLAB_ATTR(min_partial); |