Skip to contentSkip to conversation

mm-vmstat-remove-spurious-warn-during-zoneinfo-print.patch removed from -mm tree

merged [email protected] 1 participant 1 message May 16, 2017

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm, vmstat: remove spurious WARN() during zoneinfo print
has been removed from the -mm tree. Its filename was
mm-vmstat-remove-spurious-warn-during-zoneinfo-print.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Reza Arbab <[email protected]>
Subject: mm, vmstat: remove spurious WARN() during zoneinfo print

After e2ecc8a79ed49f7838 ("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 e2ecc8a79ed49f7838: "mm, vmstat: print node-based stats in zoneinfo file")
Cc David Rientjes <[email protected]>
Cc Anshuman Khandual <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc Mel Gorman <[email protected]>
Cc Johannes Weiner <[email protected]>

---

 mm/vmstat.c |    2 --
 1 file changed, 2 deletions(-)
mm/vmstat.c renamed from mm/vmstat.c~mm-vmstat-remove-spurious-warn-during-zoneinfo-print +0 -2
diff -puN mm/vmstat.c~mm-vmstat-remove-spurious-warn-during-zoneinfo-print mm/vmstat.c
@@ -1359,8 +1359,6 @@ static bool is_zone_first_populated(pg_d
 			return zone == compare;
 	}
 
-	/* The zone must be somewhere! */
-	WARN_ON_ONCE(1);
 	return false;
 }
 

_

Patches currently in -mm which might be from [email protected] are