diff options
author | Giuseppe Di Natale <[email protected]> | 2018-04-10 10:32:14 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-04-10 10:32:14 -0700 |
commit | 10f88c5cd523eec8431941abf00017fc8fb67fd3 (patch) | |
tree | 65c95f0c29cb3677fd246d217d4b55442737f6b1 /include/linux | |
parent | 74df0c5e251a920a1966a011c16f960cd7ba562e (diff) |
Linux compat 4.16: blk_queue_flag_{set,clear}
queue_flag_{set,clear}_unlocked are now private interfaces in
the Linux kernel (https://github.com/torvalds/linux/commit/8a0ac14).
Use blk_queue_flag_{set,clear} interfaces which were introduced as
of https://github.com/torvalds/linux/commit/8814ce8.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Giuseppe Di Natale <[email protected]>
Closes #7410
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/blkdev_compat.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/blkdev_compat.h b/include/linux/blkdev_compat.h index 4406493e4..d7af1d89d 100644 --- a/include/linux/blkdev_compat.h +++ b/include/linux/blkdev_compat.h @@ -37,6 +37,22 @@ typedef unsigned __bitwise__ fmode_t; #endif /* HAVE_FMODE_T */ +#ifndef HAVE_BLK_QUEUE_FLAG_SET +static inline void +blk_queue_flag_set(unsigned int flag, struct request_queue *q) +{ + queue_flag_set_unlocked(flag, q); +} +#endif + +#ifndef HAVE_BLK_QUEUE_FLAG_CLEAR +static inline void +blk_queue_flag_clear(unsigned int flag, struct request_queue *q) +{ + queue_flag_clear_unlocked(flag, q); +} +#endif + /* * 4.7 - 4.x API, * The blk_queue_write_cache() interface has replaced blk_queue_flush() |