]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm-vmscan-consider-anonymous-pages-without-swap-v11
authorKeith Busch <kbusch@kernel.org>
Mon, 23 Aug 2021 23:59:31 +0000 (09:59 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Aug 2021 23:34:11 +0000 (09:34 +1000)
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 <kbusch@kernel.org>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: "Huang, Ying" <ying.huang@intel.com>
Reviewed-by: Yang Shi <shy828301@gmail.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Zi Yan <ziy@nvidia.com>
Cc: Wei Xu <weixugc@google.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Greg Thelen <gthelen@google.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Yang Shi <yang.shi@linux.alibaba.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
mm/vmscan.c

index 301868b33fc845c74984f652ed035b546e2840d6..219e4f4280ec61d01c051494e6bfc99fbb1cd6cd 100644 (file)
@@ -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);
 }
 
 /*