diff options
author | Vladimir Davydov <vdavydov@parallels.com> | 2014-01-23 15:53:39 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-23 16:36:53 -0800 |
commit | 0d8a4a3799ab007b7a5e50aff9da9558925e0c15 (patch) | |
tree | a57c79e7e753dd3a7255a2aeb687af0948dba3b7 /mm/memcontrol.c | |
parent | 6c14466cc00ff13121ae782d33d9df0fde20b124 (diff) | |
download | linux-0d8a4a3799ab007b7a5e50aff9da9558925e0c15.tar.gz linux-0d8a4a3799ab007b7a5e50aff9da9558925e0c15.tar.bz2 linux-0d8a4a3799ab007b7a5e50aff9da9558925e0c15.zip |
memcg: remove unused code from kmem_cache_destroy_work_func
Signed-off-by: Vladimir Davydov <vdavydov@parallels.com>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
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) * So if we aren't down to zero, we'll just schedule a worker and try * again */ - if (atomic_read(&cachep->memcg_params->nr_pages) != 0) { + if (atomic_read(&cachep->memcg_params->nr_pages) != 0) kmem_cache_shrink(cachep); - if (atomic_read(&cachep->memcg_params->nr_pages) == 0) - return; - } else + else kmem_cache_destroy(cachep); } |