Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 
0003 #ifndef _BLK_IOPRIO_H_
0004 #define _BLK_IOPRIO_H_
0005 
0006 #include <linux/kconfig.h>
0007 
0008 struct request_queue;
0009 struct bio;
0010 
0011 #ifdef CONFIG_BLK_CGROUP_IOPRIO
0012 int blk_ioprio_init(struct request_queue *q);
0013 void blk_ioprio_exit(struct request_queue *q);
0014 void blkcg_set_ioprio(struct bio *bio);
0015 #else
0016 static inline int blk_ioprio_init(struct request_queue *q)
0017 {
0018     return 0;
0019 }
0020 static inline void blk_ioprio_exit(struct request_queue *q)
0021 {
0022 }
0023 static inline void blkcg_set_ioprio(struct bio *bio)
0024 {
0025 }
0026 #endif
0027 
0028 #endif /* _BLK_IOPRIO_H_ */