diff options
author | Paul Mackerras <paulus@samba.org> | 2006-03-28 21:24:50 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-03-28 21:24:50 -0500 |
commit | bac30d1a78d0f11c613968fc8b351a91ed465386 (patch) | |
tree | e52f3c876522a2f6047a6ec1c27df2e8a79486b8 /mm/vmscan.c | |
parent | e8222502ee6157e2713da9e0792c21f4ad458d50 (diff) | |
parent | ca9ba4471c1203bb6e759b76e83167fec54fe590 (diff) |
Merge ../linux-2.6
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r-- | mm/vmscan.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index 78865c849f8f..acdf001d6941 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -1305,7 +1305,7 @@ unsigned long shrink_all_memory(unsigned long nr_pages) | |||
1305 | 1305 | ||
1306 | current->reclaim_state = &reclaim_state; | 1306 | current->reclaim_state = &reclaim_state; |
1307 | repeat: | 1307 | repeat: |
1308 | for_each_pgdat(pgdat) { | 1308 | for_each_online_pgdat(pgdat) { |
1309 | unsigned long freed; | 1309 | unsigned long freed; |
1310 | 1310 | ||
1311 | freed = balance_pgdat(pgdat, nr_to_free, 0); | 1311 | freed = balance_pgdat(pgdat, nr_to_free, 0); |
@@ -1335,7 +1335,7 @@ static int __devinit cpu_callback(struct notifier_block *nfb, | |||
1335 | cpumask_t mask; | 1335 | cpumask_t mask; |
1336 | 1336 | ||
1337 | if (action == CPU_ONLINE) { | 1337 | if (action == CPU_ONLINE) { |
1338 | for_each_pgdat(pgdat) { | 1338 | for_each_online_pgdat(pgdat) { |
1339 | mask = node_to_cpumask(pgdat->node_id); | 1339 | mask = node_to_cpumask(pgdat->node_id); |
1340 | if (any_online_cpu(mask) != NR_CPUS) | 1340 | if (any_online_cpu(mask) != NR_CPUS) |
1341 | /* One of our CPUs online: restore mask */ | 1341 | /* One of our CPUs online: restore mask */ |
@@ -1351,7 +1351,7 @@ static int __init kswapd_init(void) | |||
1351 | pg_data_t *pgdat; | 1351 | pg_data_t *pgdat; |
1352 | 1352 | ||
1353 | swap_setup(); | 1353 | swap_setup(); |
1354 | for_each_pgdat(pgdat) { | 1354 | for_each_online_pgdat(pgdat) { |
1355 | pid_t pid; | 1355 | pid_t pid; |
1356 | 1356 | ||
1357 | pid = kernel_thread(kswapd, pgdat, CLONE_KERNEL); | 1357 | pid = kernel_thread(kswapd, pgdat, CLONE_KERNEL); |