1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 2 3 #ifndef _BLK_IOPRIO_H_ 3 #ifndef _BLK_IOPRIO_H_ 4 #define _BLK_IOPRIO_H_ 4 #define _BLK_IOPRIO_H_ 5 5 6 #include <linux/kconfig.h> 6 #include <linux/kconfig.h> 7 7 8 struct request_queue; 8 struct request_queue; 9 struct bio; 9 struct bio; 10 10 11 #ifdef CONFIG_BLK_CGROUP_IOPRIO 11 #ifdef CONFIG_BLK_CGROUP_IOPRIO 12 int blk_ioprio_init(struct gendisk *disk); 12 int blk_ioprio_init(struct gendisk *disk); 13 void blk_ioprio_exit(struct gendisk *disk); 13 void blk_ioprio_exit(struct gendisk *disk); 14 void blkcg_set_ioprio(struct bio *bio); 14 void blkcg_set_ioprio(struct bio *bio); 15 #else 15 #else 16 static inline int blk_ioprio_init(struct gendi 16 static inline int blk_ioprio_init(struct gendisk *disk) 17 { 17 { 18 return 0; 18 return 0; 19 } 19 } 20 static inline void blk_ioprio_exit(struct gend 20 static inline void blk_ioprio_exit(struct gendisk *disk) 21 { 21 { 22 } 22 } 23 static inline void blkcg_set_ioprio(struct bio 23 static inline void blkcg_set_ioprio(struct bio *bio) 24 { 24 { 25 } 25 } 26 #endif 26 #endif 27 27 28 #endif /* _BLK_IOPRIO_H_ */ 28 #endif /* _BLK_IOPRIO_H_ */ 29 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.