]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm-migrate-demote-pages-during-reclaim-v11
authorDave Hansen <dave.hansen@linux.intel.com>
Mon, 23 Aug 2021 23:59:30 +0000 (09:59 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Aug 2021 23:34:10 +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-5-ying.huang@intel.com
Link: https://lkml.kernel.org/r/20210721063926.3024591-4-ying.huang@intel.com
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>
Reviewed-by: Wei Xu <weixugc@google.com>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Zi Yan <ziy@nvidia.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: Keith Busch <kbusch@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
mm/vmscan.c

index b7f0442557e6d7afbba469e37494c4699cfe799d..f26ea4a16d018b891196b2fcac6cec314db2e569 100644 (file)
@@ -522,7 +522,7 @@ static long add_nr_deferred(long nr, struct shrinker *shrinker,
        return atomic_long_add_return(nr, &shrinker->nr_deferred[nid]);
 }
 
-static bool can_demote_anon_pages(int nid, struct scan_control *sc)
+static bool can_demote(int nid, struct scan_control *sc)
 {
        if (sc->no_demotion)
                return false;
@@ -1346,7 +1346,7 @@ static unsigned int shrink_page_list(struct list_head *page_list,
 
        memset(stat, 0, sizeof(*stat));
        cond_resched();
-       do_demote_pass = can_demote_anon_pages(pgdat->node_id, sc);
+       do_demote_pass = can_demote(pgdat->node_id, sc);
 
 retry:
        while (!list_empty(page_list)) {