diff options
author | Christoph Hellwig <hch@lst.de> | 2023-02-03 16:03:49 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-02-03 08:20:05 -0700 |
commit | 04aad37be1a88de6a1919996a615437ac74de479 (patch) | |
tree | c6d940926676b3ba4f217246fbb146700a88b4c5 /block/blk-wbt.h | |
parent | f05837ed73d0c73e950b2d9f2612febb0d3d451e (diff) | |
download | linux-stable-04aad37be1a88de6a1919996a615437ac74de479.tar.gz linux-stable-04aad37be1a88de6a1919996a615437ac74de479.tar.bz2 linux-stable-04aad37be1a88de6a1919996a615437ac74de479.zip |
blk-wbt: pass a gendisk to wbt_{enable,disable}_default
Pass a gendisk to wbt_enable_default and wbt_disable_default to
prepare for phasing out usage of the request_queue in the blk-cgroup
code.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Andreas Herrmann <aherrmann@suse.de>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20230203150400.3199230-9-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-wbt.h')
-rw-r--r-- | block/blk-wbt.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/block/blk-wbt.h b/block/blk-wbt.h index e3ea6e7e2900..7ab1cba55c25 100644 --- a/block/blk-wbt.h +++ b/block/blk-wbt.h @@ -91,8 +91,8 @@ static inline unsigned int wbt_inflight(struct rq_wb *rwb) #ifdef CONFIG_BLK_WBT int wbt_init(struct request_queue *); -void wbt_disable_default(struct request_queue *); -void wbt_enable_default(struct request_queue *); +void wbt_disable_default(struct gendisk *disk); +void wbt_enable_default(struct gendisk *disk); u64 wbt_get_min_lat(struct request_queue *q); void wbt_set_min_lat(struct request_queue *q, u64 val); @@ -108,10 +108,10 @@ static inline int wbt_init(struct request_queue *q) { return -EINVAL; } -static inline void wbt_disable_default(struct request_queue *q) +static inline void wbt_disable_default(struct gendisk *disk) { } -static inline void wbt_enable_default(struct request_queue *q) +static inline void wbt_enable_default(struct gendisk *disk) { } static inline void wbt_set_write_cache(struct request_queue *q, bool wc) |