diff options
-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); |