]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm/vmscan: reclaim only affects managed_zones
authorWei Yang <richard.weiyang@gmail.com>
Thu, 14 Apr 2022 19:16:53 +0000 (12:16 -0700)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Thu, 14 Apr 2022 21:49:52 +0000 (17:49 -0400)
As mentioned in commit 6aa303defb74 ("mm, vmscan: only allocate and
reclaim from zones with pages managed by the buddy allocator") , reclaim
only affects managed_zones.

Let's adjust the code and comment accordingly.

Link: https://lkml.kernel.org/r/20220327024101.10378-1-richard.weiyang@gmail.com
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Reviewed-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Cc: "Huang, Ying" <ying.huang@intel.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmscan.c

index 658724af15c7c3d1d8e4eae10abe3d4b1eecabb8..dcba2af7844579945daf15bd9a4316966277ce16 100644 (file)
@@ -1032,7 +1032,7 @@ static bool skip_throttle_noprogress(pg_data_t *pgdat)
        for (i = 0; i < MAX_NR_ZONES; i++) {
                struct zone *zone = pgdat->node_zones + i;
 
-               if (!populated_zone(zone))
+               if (!managed_zone(zone))
                        continue;
 
                reclaimable += zone_reclaimable_pages(zone);
@@ -3929,7 +3929,7 @@ static bool pgdat_balanced(pg_data_t *pgdat, int order, int highest_zoneidx)
        }
 
        /*
-        * If a node has no populated zone within highest_zoneidx, it does not
+        * If a node has no managed zone within highest_zoneidx, it does not
         * need balancing by definition. This can happen if a zone-restricted
         * allocation tries to wake a remote kswapd.
         */