*** BLURB HERE ***
Chen Ridong (1): memcg: fix input of try_to_free_mem_cgroup_pages
mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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 789303aecf27("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: 789303aecf27 ("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); }
反馈: 您发送到kernel@openeuler.org的补丁/补丁集,已成功转换为PR! PR链接地址: https://gitee.com/openeuler/kernel/pulls/8753 邮件列表地址:https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/P...
FeedBack: The patch(es) which you have sent to kernel@openeuler.org mailing list has been converted to a pull request successfully! Pull request link: https://gitee.com/openeuler/kernel/pulls/8753 Mailing list address: https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/P...