diff options
author | Christoph Hellwig <hch@lst.de> | 2015-01-14 10:42:33 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-01-20 22:02:59 +0100 |
commit | 564f00f6c03a9339c259eb71a5b3aa8ef7ff1c2e (patch) | |
tree | 58efd5b836e7d6942af954a11e2dce202a5e805a /fs/fs-writeback.c | |
parent | fs: introduce f_op->mmap_capabilities for nommu mmap support (diff) | |
download | linux-564f00f6c03a9339c259eb71a5b3aa8ef7ff1c2e.tar.xz linux-564f00f6c03a9339c259eb71a5b3aa8ef7ff1c2e.zip |
block_dev: only write bdev inode on close
Since 018a17bdc865 ("bdi: reimplement bdev_inode_switch_bdi()") the
block device code writes out all dirty data whenever switching the
backing_dev_info for a block device inode. But a block device inode can
only be dirtied when it is in use, which means we only have to write it
out on the final blkdev_put, but not when doing a blkdev_get.
Factoring out the write out from the bdi list switch prepares from
removing the list switch later in the series.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'fs/fs-writeback.c')
0 files changed, 0 insertions, 0 deletions