mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
[PATCH] vm: kswapd cleanup: use pgdat
Use the pgdat pointer we've already defined in wakeup_kswapd Signed-off-by: Con Kolivas <kernel@kolivas.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
7979aca38b
commit
8d0986e289
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user