OSDN Git Service

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)
commited7b6b4f6e915cb0bc52d0000bcc63168867b6ac
treecd643d94e35e2751ecb01f72ad76368055500bfa
parentc2e4cd57cfa1f627b786c764d185fff85fd12be9
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