summaryrefslogtreecommitdiffstats
path: root/include/linux/backing-dev.h
diff options
context:
space:
mode:
authorTejun Heo2015-06-17 00:48:30 +0200
committerJens Axboe2015-06-17 20:47:37 +0200
commitdd73e4b7df9589fa603fc6d128b4f6cabb250e8e (patch)
treee729cdad58a661c89cf2203b3f2b90de3cf1e6e5 /include/linux/backing-dev.h
parentv9fs: fix error handling in v9fs_session_init() (diff)
downloadkernel-qcow2-linux-dd73e4b7df9589fa603fc6d128b4f6cabb250e8e.tar.gz
kernel-qcow2-linux-dd73e4b7df9589fa603fc6d128b4f6cabb250e8e.tar.xz
kernel-qcow2-linux-dd73e4b7df9589fa603fc6d128b4f6cabb250e8e.zip
writeback: do foreign inode detection iff cgroup writeback is enabled
Currently, even when a filesystem doesn't set the FS_CGROUP_WRITEBACK flag, if the filesystem uses wbc_init_bio() and wbc_account_io(), the foreign inode detection and migration logic still ends up activating cgroup writeback which is unexpected. This patch ensures that the foreign inode detection logic stays disabled when inode_cgwb_enabled() is false by not associating writeback_control's with bdi_writeback's. This also avoids unnecessary operations in wbc_init_bio(), wbc_account_io() and wbc_detach_inode() for filesystems which don't support cgroup writeback. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/backing-dev.h')
0 files changed, 0 insertions, 0 deletions