summaryrefslogtreecommitdiff
path: root/drivers/md/dm.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-07-01 11:06:21 +0200
committerJens Axboe <axboe@kernel.dk>2020-07-08 17:05:53 -0600
commit8c911f3d4c074a17955a1757c9d1d5a9a5209ca5 (patch)
tree6a6219be3bf116a79973eeb585773c50a30042ef /drivers/md/dm.c
parent492d76b215660be833f12c3fa7cf2faf39434841 (diff)
writeback: remove struct bdi_writeback_congested
We never set any congested bits in the group writeback instances of it. And for the simpler bdi-wide case a simple scalar field is all that that is needed. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r--drivers/md/dm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index 2d368cafb23e..48bfd41658aa 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -1834,7 +1834,7 @@ static int dm_any_congested(void *congested_data, int bdi_bits)
* top-level queue for congestion.
*/
struct backing_dev_info *bdi = md->queue->backing_dev_info;
- r = bdi->wb.congested->state & bdi_bits;
+ r = bdi->wb.congested & bdi_bits;
} else {
map = dm_get_live_table_fast(md);
if (map)