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 void wbt_disable_default(struct gendisk *disk)
24 static inline void wbt_enable_default(struct gendisk *disk)
27 static inline void wbt_set_write_cache(struct request_queue *q, bool wc)
31 #endif /* CONFIG_BLK_WBT */