From: Keith Busch Date: Mon, 23 Aug 2021 23:59:31 +0000 (+1000) Subject: mm-vmscan-consider-anonymous-pages-without-swap-v11 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a7e1a51a06e9d3349e5f6ab255a42311cb4e85f9;p=users%2Fjedix%2Flinux-maple.git mm-vmscan-consider-anonymous-pages-without-swap-v11 Rename can_demote_anon_pages() to can_demote() to reflect the fact that the function is for anon and file pages. Link: https://lkml.kernel.org/r/20210715055145.195411-8-ying.huang@intel.com Link: https://lkml.kernel.org/r/20210721063926.3024591-7-ying.huang@intel.com Cc: Keith Busch Signed-off-by: Dave Hansen Signed-off-by: "Huang, Ying" Reviewed-by: Yang Shi Cc: Michal Hocko Cc: Zi Yan Cc: Wei Xu Cc: David Rientjes Cc: Dan Williams Cc: David Hildenbrand Cc: Greg Thelen Cc: Oscar Salvador Cc: Yang Shi Signed-off-by: Andrew Morton Signed-off-by: Stephen Rothwell --- diff --git a/mm/vmscan.c b/mm/vmscan.c index 301868b33fc8..219e4f4280ec 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -555,7 +555,7 @@ static inline bool can_reclaim_anon_pages(struct mem_cgroup *memcg, * * Can it be reclaimed from this node via demotion? */ - return can_demote_anon_pages(nid, sc); + return can_demote(nid, sc); } /*