Skip to content
Snippets Groups Projects
Commit 8d0986e2 authored by Con Kolivas's avatar Con Kolivas Committed by Linus Torvalds
Browse files

[PATCH] vm: kswapd cleanup: use pgdat


Use the pgdat pointer we've already defined in wakeup_kswapd

Signed-off-by: default avatarCon Kolivas <kernel@kolivas.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 7979aca3
No related branches found
No related tags found
No related merge requests found
...@@ -1258,9 +1258,9 @@ void wakeup_kswapd(struct zone *zone, int order) ...@@ -1258,9 +1258,9 @@ void wakeup_kswapd(struct zone *zone, int order)
pgdat->kswapd_max_order = order; pgdat->kswapd_max_order = order;
if (!cpuset_zone_allowed(zone, __GFP_HARDWALL)) if (!cpuset_zone_allowed(zone, __GFP_HARDWALL))
return; return;
if (!waitqueue_active(&zone->zone_pgdat->kswapd_wait)) if (!waitqueue_active(&pgdat->kswapd_wait))
return; return;
wake_up_interruptible(&zone->zone_pgdat->kswapd_wait); wake_up_interruptible(&pgdat->kswapd_wait);
} }
#ifdef CONFIG_PM #ifdef CONFIG_PM
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment