From 76e0403d01980d5805e5ad51fa947114881f902b Mon Sep 17 00:00:00 2001 From: Yang Shi Date: Fri, 2 Aug 2019 02:06:35 +0800 Subject: [PATCH] alios: mm: vmscan: make it sane reclaim if cgwb_v1 is enabled AliOS Cloud Kernel has cgroup writeback support for v1, so the reclaim could be treated as sane reclaim if cgwb_v1 is enabled. Reviewed-by: Gavin Shan Reviewed-by: Xunlei Pang Reviewed-by: Joseph Qi Reviewed-by: Caspar Zhang Signed-off-by: Yang Shi --- mm/vmscan.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 3e0f85a9ef4a..c58c0328903e 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -260,7 +260,9 @@ static bool sane_reclaim(struct scan_control *sc) if (!memcg) return true; #ifdef CONFIG_CGROUP_WRITEBACK - if (cgroup_subsys_on_dfl(memory_cgrp_subsys)) + /* AliOS Cloud Kernel has cgroup writeback support for v1 */ + if (cgroup_subsys_on_dfl(memory_cgrp_subsys) || + cgwb_v1) return true; #endif return false; -- GitLab