mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
memcg: remove unused code from kmem_cache_destroy_work_func
Signed-off-by: Vladimir Davydov <[email protected]> Reviewed-by: Michal Hocko <[email protected]> Cc: Johannes Weiner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
6c14466cc0
commit
0d8a4a3799
1 changed files with 2 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue