Offering: HULK hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I9VO81
--------------------------------
The parameters for try_to_free_mem_cgroup_pages have been changed, which was backported at 73b73bac90d9("mm: vmpressure: don't count proactive reclaim in vmpressure"). However, try_to_free_mem_cgroup_pages called in is_high_async_reclaim was omitted, just fix it.
Fixes: 73b73bac90d9 ("mm: vmpressure: don't count proactive reclaim in vmpressure") Signed-off-by: Chen Ridong chenridong@huawei.com --- mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index db44ade93455..e0e62b82ccbe 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -2423,7 +2423,7 @@ static void async_reclaim_high(struct mem_cgroup *memcg) psi_memstall_enter(&pflags); nr_pages = memcg_usage > safe_pages ? memcg_usage - safe_pages : MEMCG_CHARGE_BATCH; - try_to_free_mem_cgroup_pages(memcg, nr_pages, GFP_KERNEL, true); + try_to_free_mem_cgroup_pages(memcg, nr_pages, GFP_KERNEL, MEMCG_RECLAIM_MAY_SWAP); psi_memstall_leave(&pflags); WRITE_ONCE(memcg->high_async_reclaim, false); }