aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-wbt.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2016-11-10 23:52:53 -0500
committerJens Axboe <axboe@fb.com>2016-11-11 18:18:18 -0500
commitd8a0cbfd73cb7281120d1b49f90afeef26ad48a2 (patch)
treed856e1099a712e7333cbcf3585d6881cd23bf3aa /block/blk-wbt.h
parentbbd7bb7017d5c2b1e75f3818b4ce88fa58bb0eab (diff)
blk-wbt: store queue instead of bdi
The bdi was a leftover from when the code was block layer agnostic. Now that we just support a block layer user, store the queue directly. Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-wbt.h')
-rw-r--r--block/blk-wbt.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/block/blk-wbt.h b/block/blk-wbt.h
index e57700337c26..09c61a3f8295 100644
--- a/block/blk-wbt.h
+++ b/block/blk-wbt.h
@@ -87,7 +87,7 @@ struct rq_wb {
87 unsigned long last_issue; /* last non-throttled issue */ 87 unsigned long last_issue; /* last non-throttled issue */
88 unsigned long last_comp; /* last non-throttled comp */ 88 unsigned long last_comp; /* last non-throttled comp */
89 unsigned long min_lat_nsec; 89 unsigned long min_lat_nsec;
90 struct backing_dev_info *bdi; 90 struct request_queue *queue;
91 struct rq_wait rq_wait[WBT_NUM_RWQ]; 91 struct rq_wait rq_wait[WBT_NUM_RWQ];
92 92
93 struct wb_stat_ops *stat_ops; 93 struct wb_stat_ops *stat_ops;
@@ -104,8 +104,6 @@ static inline unsigned int wbt_inflight(struct rq_wb *rwb)
104 return ret; 104 return ret;
105} 105}
106 106
107struct backing_dev_info;
108
109#ifdef CONFIG_BLK_WBT 107#ifdef CONFIG_BLK_WBT
110 108
111void __wbt_done(struct rq_wb *, enum wbt_flags); 109void __wbt_done(struct rq_wb *, enum wbt_flags);