diff options
Diffstat (limited to 'mm/slub.c')
-rw-r--r-- | mm/slub.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -3398,7 +3398,7 @@ EXPORT_SYMBOL(kfree); | |||
3398 | * being allocated from last increasing the chance that the last objects | 3398 | * being allocated from last increasing the chance that the last objects |
3399 | * are freed in them. | 3399 | * are freed in them. |
3400 | */ | 3400 | */ |
3401 | int kmem_cache_shrink(struct kmem_cache *s) | 3401 | int __kmem_cache_shrink(struct kmem_cache *s) |
3402 | { | 3402 | { |
3403 | int node; | 3403 | int node; |
3404 | int i; | 3404 | int i; |
@@ -3454,7 +3454,6 @@ int kmem_cache_shrink(struct kmem_cache *s) | |||
3454 | kfree(slabs_by_inuse); | 3454 | kfree(slabs_by_inuse); |
3455 | return 0; | 3455 | return 0; |
3456 | } | 3456 | } |
3457 | EXPORT_SYMBOL(kmem_cache_shrink); | ||
3458 | 3457 | ||
3459 | static int slab_mem_going_offline_callback(void *arg) | 3458 | static int slab_mem_going_offline_callback(void *arg) |
3460 | { | 3459 | { |
@@ -3462,7 +3461,7 @@ static int slab_mem_going_offline_callback(void *arg) | |||
3462 | 3461 | ||
3463 | mutex_lock(&slab_mutex); | 3462 | mutex_lock(&slab_mutex); |
3464 | list_for_each_entry(s, &slab_caches, list) | 3463 | list_for_each_entry(s, &slab_caches, list) |
3465 | kmem_cache_shrink(s); | 3464 | __kmem_cache_shrink(s); |
3466 | mutex_unlock(&slab_mutex); | 3465 | mutex_unlock(&slab_mutex); |
3467 | 3466 | ||
3468 | return 0; | 3467 | return 0; |