blk-ioprio.h 540 B

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