emm: set force scan for proactive reclaim
Upstream: alternative When scan is set to reclaim pages, set force_scan to walk full page table. Signed-off-by: Kairui Song <kasong@tencent.com>
This commit is contained in:
parent
084abf9f2d
commit
1f73c792ea
|
@ -8718,6 +8718,9 @@ int memcg_lru_gen_emm_reclaim(struct mem_cgroup *memcg, int mode,
|
|||
goto done;
|
||||
}
|
||||
|
||||
if (nr_pages)
|
||||
walk->force_scan = true;
|
||||
|
||||
if (nr_pages == PAGE_COUNTER_MAX)
|
||||
walk->force_full_scan = true;
|
||||
|
||||
|
|
Loading…
Reference in New Issue