diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-06 22:02:23 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-06 22:02:23 -0500 |
commit | 208bca0860406d16398145ddd950036a737c3c9d (patch) | |
tree | 7797a16c17d8bd155120126fa7976727fc6de013 /mm/backing-dev.c | |
parent | 6aad3738f6a79fd0ca480eaceefe064cc471f6eb (diff) | |
parent | 0e175a1835ffc979e55787774e58ec79e41957d7 (diff) |
Merge branch 'writeback-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/wfg/linux
* 'writeback-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/wfg/linux:
writeback: Add a 'reason' to wb_writeback_work
writeback: send work item to queue_io, move_expired_inodes
writeback: trace event balance_dirty_pages
writeback: trace event bdi_dirty_ratelimit
writeback: fix ppc compile warnings on do_div(long long, unsigned long)
writeback: per-bdi background threshold
writeback: dirty position control - bdi reserve area
writeback: control dirty pause time
writeback: limit max dirty pause time
writeback: IO-less balance_dirty_pages()
writeback: per task dirty rate limit
writeback: stabilize bdi->dirty_ratelimit
writeback: dirty rate control
writeback: add bg_threshold parameter to __bdi_update_bandwidth()
writeback: dirty position control
writeback: account per-bdi accumulated dirtied pages
Diffstat (limited to 'mm/backing-dev.c')
-rw-r--r-- | mm/backing-dev.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mm/backing-dev.c b/mm/backing-dev.c index 7520ef0bfd47..a0860640378d 100644 --- a/mm/backing-dev.c +++ b/mm/backing-dev.c | |||
@@ -97,6 +97,7 @@ static int bdi_debug_stats_show(struct seq_file *m, void *v) | |||
97 | "BdiDirtyThresh: %10lu kB\n" | 97 | "BdiDirtyThresh: %10lu kB\n" |
98 | "DirtyThresh: %10lu kB\n" | 98 | "DirtyThresh: %10lu kB\n" |
99 | "BackgroundThresh: %10lu kB\n" | 99 | "BackgroundThresh: %10lu kB\n" |
100 | "BdiDirtied: %10lu kB\n" | ||
100 | "BdiWritten: %10lu kB\n" | 101 | "BdiWritten: %10lu kB\n" |
101 | "BdiWriteBandwidth: %10lu kBps\n" | 102 | "BdiWriteBandwidth: %10lu kBps\n" |
102 | "b_dirty: %10lu\n" | 103 | "b_dirty: %10lu\n" |
@@ -109,6 +110,7 @@ static int bdi_debug_stats_show(struct seq_file *m, void *v) | |||
109 | K(bdi_thresh), | 110 | K(bdi_thresh), |
110 | K(dirty_thresh), | 111 | K(dirty_thresh), |
111 | K(background_thresh), | 112 | K(background_thresh), |
113 | (unsigned long) K(bdi_stat(bdi, BDI_DIRTIED)), | ||
112 | (unsigned long) K(bdi_stat(bdi, BDI_WRITTEN)), | 114 | (unsigned long) K(bdi_stat(bdi, BDI_WRITTEN)), |
113 | (unsigned long) K(bdi->write_bandwidth), | 115 | (unsigned long) K(bdi->write_bandwidth), |
114 | nr_dirty, | 116 | nr_dirty, |
@@ -473,7 +475,8 @@ static int bdi_forker_thread(void *ptr) | |||
473 | * the bdi from the thread. Hopefully 1024 is | 475 | * the bdi from the thread. Hopefully 1024 is |
474 | * large enough for efficient IO. | 476 | * large enough for efficient IO. |
475 | */ | 477 | */ |
476 | writeback_inodes_wb(&bdi->wb, 1024); | 478 | writeback_inodes_wb(&bdi->wb, 1024, |
479 | WB_REASON_FORKER_THREAD); | ||
477 | } else { | 480 | } else { |
478 | /* | 481 | /* |
479 | * The spinlock makes sure we do not lose | 482 | * The spinlock makes sure we do not lose |
@@ -683,6 +686,8 @@ int bdi_init(struct backing_dev_info *bdi) | |||
683 | bdi->bw_time_stamp = jiffies; | 686 | bdi->bw_time_stamp = jiffies; |
684 | bdi->written_stamp = 0; | 687 | bdi->written_stamp = 0; |
685 | 688 | ||
689 | bdi->balanced_dirty_ratelimit = INIT_BW; | ||
690 | bdi->dirty_ratelimit = INIT_BW; | ||
686 | bdi->write_bandwidth = INIT_BW; | 691 | bdi->write_bandwidth = INIT_BW; |
687 | bdi->avg_write_bandwidth = INIT_BW; | 692 | bdi->avg_write_bandwidth = INIT_BW; |
688 | 693 | ||