Skip to contentSkip to conversation

mm-use-populated_zone-instead-of-ifzone-present_pages.patch removed from -mm tree

merged [email protected] 1 participant 1 message Nov 13, 2013

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: [merged] mm-use-populated_zone-instead-of-ifzone-present_pages.patch removed from -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Wed, 13 Nov 2013 12:37:59 -0800

The patch titled

     Subject: mm: use populated_zone() instead of if(zone->present_pages)

has been removed from the -mm tree. Its filename was
mm-use-populated_zone-instead-of-ifzone-present_pages.patch

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

------------------------------------------------------
From: Xishi Qiu <[email protected]>
Subject: mm: use populated_zone() instead of if(zone->present_pages)

Use "if (zone->present_pages)" instead of "if (zone->present_pages)". Simplify the code, no functional change.

---

 mm/page_alloc.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mm/page_alloc.c renamed from mm/page_alloc.c~mm-use-populated_zone-instead-of-ifzone-present_pages +2 -2
diff -puN mm/page_alloc.c~mm-use-populated_zone-instead-of-ifzone-present_pages mm/page_alloc.c
@@ -4266,7 +4266,7 @@ static __meminit void zone_pcp_init(stru
 	 */
 	zone->pageset = &boot_pageset;
 
-	if (zone->present_pages)
+	if (populated_zone(zone))
 		printk(KERN_DEBUG "  %s zone: %lu pages, LIFO batch:%u\n",
 			zone->name, zone->present_pages,
 					 zone_batchsize(zone));
@@ -5160,7 +5160,7 @@ static void check_for_memory(pg_data_t *
 
 	for (zone_type = 0; zone_type <= ZONE_MOVABLE - 1; zone_type++) {
 		struct zone *zone = &pgdat->node_zones[zone_type];
-		if (zone->present_pages) {
+		if (populated_zone(zone)) {
 			node_set_state(nid, N_HIGH_MEMORY);
 			if (N_NORMAL_MEMORY != N_HIGH_MEMORY &&
 			    zone_type <= ZONE_NORMAL)

_

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

origin.patch
linux-next.patch