Commit 18849ae6 authored by Chen Wandun's avatar Chen Wandun Committed by Yang Yingliang
Browse files

mm/vmscan: fix frequent call of shrink_page_cache_work

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I4SK3S


CVE: NA

--------------------------------

If vmcache_reclaim_s > 120, it will call shrink_page_cache_work
after 120 seconds even shrinking is hard, that is shorter than
vmcache_reclaim_s, deviating from the original intention of extending
the interval.

In order to solve this, shrink_page_cache_work should be call
after vmcache_reclaim_s + 120.

Signed-off-by: default avatarChen Wandun <chenwandun@huawei.com>
Reviewed-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent c05f56c6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment