mm, vmstat: Remove spurious WARN() during zoneinfo print
authorReza Arbab <>
Fri, 12 May 2017 22:46:32 +0000 (15:46 -0700)
committerLinus Torvalds <>
Fri, 12 May 2017 22:57:15 +0000 (15:57 -0700)
After commit e2ecc8a79ed4 ("mm, vmstat: print non-populated zones in
zoneinfo"), /proc/zoneinfo will show unpopulated zones.

A memoryless node, having no populated zones at all, was previously
ignored, but will now trigger the WARN() in is_zone_first_populated().

Remove this warning, as its only purpose was to warn of a situation that
has since been enabled.

Aside: The "per-node stats" are still printed under the first populated
zone, but that's not necessarily the first stanza any more.  I'm not
sure which criteria is more important with regard to not breaking
parsers, but it looks a little weird to the eye.

Fixes: e2ecc8a79ed4 ("mm, vmstat: print node-based stats in zoneinfo file")
Signed-off-by: Reza Arbab <>
Cc: David Rientjes <>
Cc: Anshuman Khandual <>
Cc: Vlastimil Babka <>
Cc: Mel Gorman <>
Cc: Johannes Weiner <>
Signed-off-by: Andrew Morton <>
Signed-off-by: Linus Torvalds <>

index f5fa1bd1eb1656cb4e608bd301c83e92f66ac3b2..76f73670200ac1d34b5f17388df8356fadffaf71 100644 (file)
@@ -1359,8 +1359,6 @@ static bool is_zone_first_populated(pg_data_t *pgdat, struct zone *zone)
                        return zone == compare;
-       /* The zone must be somewhere! */
-       WARN_ON_ONCE(1);
        return false;