提交 0d8a4a37 编写于 作者: V Vladimir Davydov 提交者: Linus Torvalds

memcg: remove unused code from kmem_cache_destroy_work_func

Signed-off-by: NVladimir Davydov <vdavydov@parallels.com>
Reviewed-by: NMichal Hocko <mhocko@suse.cz>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 6c14466c
...@@ -3359,11 +3359,9 @@ static void kmem_cache_destroy_work_func(struct work_struct *w) ...@@ -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 * So if we aren't down to zero, we'll just schedule a worker and try
* again * again
*/ */
if (atomic_read(&cachep->memcg_params->nr_pages) != 0) { if (atomic_read(&cachep->memcg_params->nr_pages) != 0)
kmem_cache_shrink(cachep); kmem_cache_shrink(cachep);
if (atomic_read(&cachep->memcg_params->nr_pages) == 0) else
return;
} else
kmem_cache_destroy(cachep); kmem_cache_destroy(cachep);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册