diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2009-09-25 18:07:46 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-09-25 18:10:40 -0400 |
commit | a72bfd4dea053bb8e2233902c3f1893ef5485802 (patch) | |
tree | 1246fc000adfee6d2874b9324eaf7383ad4413bb /mm/page-writeback.c | |
parent | 6d7f18f6ea3a13af95bdf507fc54d42b165e1712 (diff) |
writeback: pass in super_block to bdi_start_writeback()
Sometimes we only want to write pages from a specific super_block,
so allow that to be passed in.
This fixes a problem with commit 56a131dcf7ed36c3c6e36bea448b674ea85ed5bb
causing writeback on all super_blocks on a bdi, where we only really
want to sync a specific sb from writeback_inodes_sb().
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'mm/page-writeback.c')
-rw-r--r-- | mm/page-writeback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 69b5fbabc8bd..a3b14090b1fb 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c | |||
@@ -596,7 +596,7 @@ static void balance_dirty_pages(struct address_space *mapping, | |||
596 | (!laptop_mode && ((global_page_state(NR_FILE_DIRTY) | 596 | (!laptop_mode && ((global_page_state(NR_FILE_DIRTY) |
597 | + global_page_state(NR_UNSTABLE_NFS)) | 597 | + global_page_state(NR_UNSTABLE_NFS)) |
598 | > background_thresh))) | 598 | > background_thresh))) |
599 | bdi_start_writeback(bdi, 0); | 599 | bdi_start_writeback(bdi, NULL, 0); |
600 | } | 600 | } |
601 | 601 | ||
602 | void set_page_dirty_balance(struct page *page, int page_mkwrite) | 602 | void set_page_dirty_balance(struct page *page, int page_mkwrite) |