1 /* SPDX-License-Identifier: GPL-2.0 */
7 int wbt_init(struct gendisk *disk);
8 void wbt_disable_default(struct gendisk *disk);
9 void wbt_enable_default(struct gendisk *disk);
11 u64 wbt_get_min_lat(struct request_queue *q);
12 void wbt_set_min_lat(struct request_queue *q, u64 val);
13 bool wbt_disabled(struct request_queue *);
15 void wbt_set_write_cache(struct request_queue *, bool);
17 u64 wbt_default_latency_nsec(struct request_queue *);
21 static inline int wbt_init(struct gendisk *disk)
25 static inline void wbt_disable_default(struct gendisk *disk)
28 static inline void wbt_enable_default(struct gendisk *disk)
31 static inline void wbt_set_write_cache(struct request_queue *q, bool wc)
34 static inline u64 wbt_get_min_lat(struct request_queue *q)
38 static inline void wbt_set_min_lat(struct request_queue *q, u64 val)
41 static inline u64 wbt_default_latency_nsec(struct request_queue *q)
45 static inline bool wbt_disabled(struct request_queue *q)
50 #endif /* CONFIG_BLK_WBT */