1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef WB_THROTTLE_H 3 #define WB_THROTTLE_H 4 5 #ifdef CONFIG_BLK_WBT 6 7 int wbt_init(struct gendisk *disk); 8 void wbt_disable_default(struct gendisk *disk); 9 void wbt_enable_default(struct gendisk *disk); 10 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 *); 14 15 u64 wbt_default_latency_nsec(struct request_queue *); 16 17 #else 18 19 static inline void wbt_disable_default(struct gendisk *disk) 20 { 21 } 22 static inline void wbt_enable_default(struct gendisk *disk) 23 { 24 } 25 26 #endif /* CONFIG_BLK_WBT */ 27 28 #endif 29
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.