]> git.baikalelectronics.ru Git - kernel.git/commit
bdi: remove BDI_CAP_CGROUP_WRITEBACK
authorChristoph Hellwig <hch@lst.de>
Thu, 24 Sep 2020 06:51:35 +0000 (08:51 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 24 Sep 2020 19:43:39 +0000 (13:43 -0600)
commit73fc6f2152131a7a81679b0a44dfd60b3d2c5e0f
treecd643d94e35e2751ecb01f72ad76368055500bfa
parente506e825dcf3edd24b28619b946ef1cf4af94071
bdi: remove BDI_CAP_CGROUP_WRITEBACK

Just checking SB_I_CGROUPWB for cgroup writeback support is enough.
Either the file system allocates its own bdi (e.g. btrfs), in which case
it is known to support cgroup writeback, or the bdi comes from the block
layer, which always supports cgroup writeback.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
fs/btrfs/disk-io.c
include/linux/backing-dev.h