diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2009-09-26 00:07:46 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-09-26 00:10:40 +0200 |
commit | a72bfd4dea053bb8e2233902c3f1893ef5485802 (patch) | |
tree | 1246fc000adfee6d2874b9324eaf7383ad4413bb /include | |
parent | 6d7f18f6ea3a13af95bdf507fc54d42b165e1712 (diff) | |
download | linux-stable-a72bfd4dea053bb8e2233902c3f1893ef5485802.tar.gz linux-stable-a72bfd4dea053bb8e2233902c3f1893ef5485802.tar.bz2 linux-stable-a72bfd4dea053bb8e2233902c3f1893ef5485802.zip |
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 'include')
-rw-r--r-- | include/linux/backing-dev.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/backing-dev.h b/include/linux/backing-dev.h index 0ee33c2e6129..b449e738533a 100644 --- a/include/linux/backing-dev.h +++ b/include/linux/backing-dev.h @@ -101,7 +101,8 @@ int bdi_register(struct backing_dev_info *bdi, struct device *parent, const char *fmt, ...); int bdi_register_dev(struct backing_dev_info *bdi, dev_t dev); void bdi_unregister(struct backing_dev_info *bdi); -void bdi_start_writeback(struct backing_dev_info *bdi, long nr_pages); +void bdi_start_writeback(struct backing_dev_info *bdi, struct super_block *sb, + long nr_pages); int bdi_writeback_task(struct bdi_writeback *wb); int bdi_has_dirty_io(struct backing_dev_info *bdi); |