From: Con Kolivas Date: Tue, 13 Sep 2005 08:25:07 +0000 (-0700) Subject: [PATCH] vm: kswapd cleanup: use pgdat X-Git-Tag: firefly_0821_release~41146 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8d0986e289a4b018fec87fcc49538945fb401f37;p=firefly-linux-kernel-4.4.55.git [PATCH] vm: kswapd cleanup: use pgdat Use the pgdat pointer we've already defined in wakeup_kswapd Signed-off-by: Con Kolivas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/vmscan.c b/mm/vmscan.c index a740778f688d..0ea71e887bb6 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1258,9 +1258,9 @@ void wakeup_kswapd(struct zone *zone, int order) 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