forked from Minki/linux
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>
This commit is contained in:
parent
6c14466cc0
commit
0d8a4a3799
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user