Commit 0d8a4a37 authored by Vladimir Davydov's avatar Vladimir Davydov Committed by Linus Torvalds

memcg: remove unused code from kmem_cache_destroy_work_func

Signed-off-by: default avatarVladimir Davydov <>
Reviewed-by: default avatarMichal Hocko <>
Cc: Johannes Weiner <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 6c14466c
......@@ -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)
if (atomic_read(&cachep->memcg_params->nr_pages) == 0)
} else
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment