diff options
Diffstat (limited to 'mm/memcontrol.c')
-rw-r--r-- | mm/memcontrol.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 98f80beeac7f..19d5d4274e22 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c | |||
@@ -3359,11 +3359,9 @@ static void kmem_cache_destroy_work_func(struct work_struct *w) | |||
3359 | * So if we aren't down to zero, we'll just schedule a worker and try | 3359 | * So if we aren't down to zero, we'll just schedule a worker and try |
3360 | * again | 3360 | * again |
3361 | */ | 3361 | */ |
3362 | if (atomic_read(&cachep->memcg_params->nr_pages) != 0) { | 3362 | if (atomic_read(&cachep->memcg_params->nr_pages) != 0) |
3363 | kmem_cache_shrink(cachep); | 3363 | kmem_cache_shrink(cachep); |
3364 | if (atomic_read(&cachep->memcg_params->nr_pages) == 0) | 3364 | else |
3365 | return; | ||
3366 | } else | ||
3367 | kmem_cache_destroy(cachep); | 3365 | kmem_cache_destroy(cachep); |
3368 | } | 3366 | } |
3369 | 3367 | ||