summaryrefslogtreecommitdiffstats
path: root/block/blk-core.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-09-24 08:51:35 +0200
committerJens Axboe <axboe@kernel.dk>2020-09-24 13:43:39 -0600
commited7b6b4f6e915cb0bc52d0000bcc63168867b6ac (patch)
treecd643d94e35e2751ecb01f72ad76368055500bfa /block/blk-core.c
parentc2e4cd57cfa1f627b786c764d185fff85fd12be9 (diff)
downloadlinux-ed7b6b4f6e915cb0bc52d0000bcc63168867b6ac.tar.gz
linux-ed7b6b4f6e915cb0bc52d0000bcc63168867b6ac.tar.bz2
linux-ed7b6b4f6e915cb0bc52d0000bcc63168867b6ac.zip
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>
Diffstat (limited to 'block/blk-core.c')
-rw-r--r--block/blk-core.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index 865d39e5be2b..1cc4fa6bc7fe 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -538,7 +538,6 @@ struct request_queue *blk_alloc_queue(int node_id)
if (!q->stats)
goto fail_stats;
- q->backing_dev_info->capabilities = BDI_CAP_CGROUP_WRITEBACK;
q->node = node_id;
atomic_set(&q->nr_active_requests_shared_sbitmap, 0);