diff options
author | Tejun Heo <tj@kernel.org> | 2014-09-08 01:04:01 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-09-08 18:00:43 +0200 |
commit | 018a17bdc8658ad448497c84d4ba21b6985820ec (patch) | |
tree | 77bfb4ea1b75452dd68817d59770e8d1c6bd37ec /fs/btrfs | |
parent | bdi: explain the dirty list transferring in bdi_destroy() (diff) | |
download | linux-018a17bdc8658ad448497c84d4ba21b6985820ec.tar.xz linux-018a17bdc8658ad448497c84d4ba21b6985820ec.zip |
bdi: reimplement bdev_inode_switch_bdi()
A block_device may be attached to different gendisks and thus
different bdis over time. bdev_inode_switch_bdi() is used to switch
the associated bdi. The function assumes that the inode could be
dirty and transfers it between bdis if so. This is a bit nasty in
that it reaches into bdi internals.
This patch reimplements the function so that it writes out the inode
if dirty. This is a lot simpler and can be implemented without
exposing bdi internals.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'fs/btrfs')
0 files changed, 0 insertions, 0 deletions