Commit df5dfed3 authored by Chen Ridong's avatar Chen Ridong
Browse files

memcg: fix input of try_to_free_mem_cgroup_pages

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 789303ae("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: 789303ae ("mm: vmpressure: don't count proactive reclaim in vmpressure")
Signed-off-by: default avatarChen Ridong <chenridong@huawei.com>
parent 87d5a74b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2424,7 +2424,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);
}