diff options
Diffstat (limited to 'fs/buffer.c')
-rw-r--r-- | fs/buffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/buffer.c b/fs/buffer.c index 1dae94acb3fe..71358499bc57 100644 --- a/fs/buffer.c +++ b/fs/buffer.c | |||
@@ -361,13 +361,13 @@ void invalidate_bdev(struct block_device *bdev) | |||
361 | static void free_more_memory(void) | 361 | static void free_more_memory(void) |
362 | { | 362 | { |
363 | struct zonelist *zonelist; | 363 | struct zonelist *zonelist; |
364 | pg_data_t *pgdat; | 364 | int nid; |
365 | 365 | ||
366 | wakeup_pdflush(1024); | 366 | wakeup_pdflush(1024); |
367 | yield(); | 367 | yield(); |
368 | 368 | ||
369 | for_each_online_pgdat(pgdat) { | 369 | for_each_online_node(nid) { |
370 | zonelist = &pgdat->node_zonelists[gfp_zone(GFP_NOFS)]; | 370 | zonelist = node_zonelist(nid, GFP_NOFS); |
371 | if (zonelist->zones[0]) | 371 | if (zonelist->zones[0]) |
372 | try_to_free_pages(zonelist, 0, GFP_NOFS); | 372 | try_to_free_pages(zonelist, 0, GFP_NOFS); |
373 | } | 373 | } |