Skip to contentSkip to conversation

vm: kswapd use pgdat

PATCH New Con Kolivas 1 participant 1 message Sep 8, 2005

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vm: kswapd use pgdat

We don't fully utilise this pointer.

Con
---

Use the pgdat pointer we've already defined in wakeup_kswapd

mm/vmscan.c +2 -2
Index: linux-2.6.13-mm2/mm/vmscan.c
===================================================================
@@ -1263,9 +1263,9 @@ void wakeup_kswapd(struct zone *zone, in
 		pgdat->kswapd_max_order = order;
 	if (!cpuset_zone_allowed(zone, __GFP_HARDWALL))
 		return;
-	if (!waitqueue_active(&zone->zone_pgdat->kswapd_wait))
+	if (!waitqueue_active(&pgdat->kswapd_wait))
 		return;
-	wake_up_interruptible(&zone->zone_pgdat->kswapd_wait);
+	wake_up_interruptible(&pgdat->kswapd_wait);
 }
 
 #ifdef CONFIG_PM