]> 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)
commitfccfab1279220837879db250b8b10d357ae601de
treecd643d94e35e2751ecb01f72ad76368055500bfa
parent4aa605b630ad5b7c78f69a049687e2e32ff61be0
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