aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fs-writeback.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2010-10-26 17:22:05 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-10-26 19:52:10 -0400
commit74ce002d9aee23031b4967e1dd1c1966ddc60749 (patch)
tree797e998b3c8661d8e6884de4228928d6cda74047 /fs/fs-writeback.c
parent16b56cf4b8a0fa9acc21bd2ad19839b917999b96 (diff)
fs/fs-writeback.c: restore lost comment
I had to go back to a 2.6.20 tree to work out why we're adding a number-of-inodes into a number-of-pages count. Restore the lost comment. Cc: Jens Axboe <axboe@kernel.dk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/fs-writeback.c')
-rw-r--r--fs/fs-writeback.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c
index 97d2951bd4d1..b5aae4bd0aca 100644
--- a/fs/fs-writeback.c
+++ b/fs/fs-writeback.c
@@ -721,6 +721,10 @@ static long wb_check_old_data_flush(struct bdi_writeback *wb)
721 return 0; 721 return 0;
722 722
723 wb->last_old_flush = jiffies; 723 wb->last_old_flush = jiffies;
724 /*
725 * Add in the number of potentially dirty inodes, because each inode
726 * write can dirty pagecache in the underlying blockdev.
727 */
724 nr_pages = global_page_state(NR_FILE_DIRTY) + 728 nr_pages = global_page_state(NR_FILE_DIRTY) +
725 global_page_state(NR_UNSTABLE_NFS) + 729 global_page_state(NR_UNSTABLE_NFS) +
726 (inodes_stat.nr_inodes - inodes_stat.nr_unused); 730 (inodes_stat.nr_inodes - inodes_stat.nr_unused);