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:
Kairui Song 2023-11-01 11:20:21 +08:00
parent 084abf9f2d
commit 1f73c792ea
1 changed files with 3 additions and 0 deletions

View File

@ -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;