aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page-writeback.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2009-08-14 01:41:02 -0400
committerTejun Heo <tj@kernel.org>2009-08-14 01:45:31 -0400
commit384be2b18a5f9475eab9ca2bdfa95cc1a04ef59c (patch)
tree04c93f391a1b65c8bf8d7ba8643c07d26c26590a /mm/page-writeback.c
parenta76761b621bcd8336065c4fe3a74f046858bc34c (diff)
parent142d44b0dd6741a64a7bdbe029110e7c1dcf1d23 (diff)
Merge branch 'percpu-for-linus' into percpu-for-next
Conflicts: arch/sparc/kernel/smp_64.c arch/x86/kernel/cpu/perf_counter.c arch/x86/kernel/setup_percpu.c drivers/cpufreq/cpufreq_ondemand.c mm/percpu.c Conflicts in core and arch percpu codes are mostly from commit ed78e1e078dd44249f88b1dd8c76dafb39567161 which substituted many num_possible_cpus() with nr_cpu_ids. As for-next branch has moved all the first chunk allocators into mm/percpu.c, the changes are moved from arch code to mm/percpu.c. Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'mm/page-writeback.c')
-rw-r--r--mm/page-writeback.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c
index 3c7f5e1afe5f..997186c0b519 100644
--- a/mm/page-writeback.c
+++ b/mm/page-writeback.c
@@ -575,7 +575,7 @@ static void balance_dirty_pages(struct address_space *mapping)
575 if (pages_written >= write_chunk) 575 if (pages_written >= write_chunk)
576 break; /* We've done our duty */ 576 break; /* We've done our duty */
577 577
578 congestion_wait(WRITE, HZ/10); 578 congestion_wait(BLK_RW_ASYNC, HZ/10);
579 } 579 }
580 580
581 if (bdi_nr_reclaimable + bdi_nr_writeback < bdi_thresh && 581 if (bdi_nr_reclaimable + bdi_nr_writeback < bdi_thresh &&
@@ -670,7 +670,7 @@ void throttle_vm_writeout(gfp_t gfp_mask)
670 if (global_page_state(NR_UNSTABLE_NFS) + 670 if (global_page_state(NR_UNSTABLE_NFS) +
671 global_page_state(NR_WRITEBACK) <= dirty_thresh) 671 global_page_state(NR_WRITEBACK) <= dirty_thresh)
672 break; 672 break;
673 congestion_wait(WRITE, HZ/10); 673 congestion_wait(BLK_RW_ASYNC, HZ/10);
674 674
675 /* 675 /*
676 * The caller might hold locks which can prevent IO completion 676 * The caller might hold locks which can prevent IO completion
@@ -716,7 +716,7 @@ static void background_writeout(unsigned long _min_pages)
716 if (wbc.nr_to_write > 0 || wbc.pages_skipped > 0) { 716 if (wbc.nr_to_write > 0 || wbc.pages_skipped > 0) {
717 /* Wrote less than expected */ 717 /* Wrote less than expected */
718 if (wbc.encountered_congestion || wbc.more_io) 718 if (wbc.encountered_congestion || wbc.more_io)
719 congestion_wait(WRITE, HZ/10); 719 congestion_wait(BLK_RW_ASYNC, HZ/10);
720 else 720 else
721 break; 721 break;
722 } 722 }
@@ -788,7 +788,7 @@ static void wb_kupdate(unsigned long arg)
788 writeback_inodes(&wbc); 788 writeback_inodes(&wbc);
789 if (wbc.nr_to_write > 0) { 789 if (wbc.nr_to_write > 0) {
790 if (wbc.encountered_congestion || wbc.more_io) 790 if (wbc.encountered_congestion || wbc.more_io)
791 congestion_wait(WRITE, HZ/10); 791 congestion_wait(BLK_RW_ASYNC, HZ/10);
792 else 792 else
793 break; /* All the old data is written */ 793 break; /* All the old data is written */
794 } 794 }