block: add blk_queue_fua() helper function
authorDave Chinner <dchinner@redhat.com>
Wed, 18 Apr 2018 04:08:27 +0000 (14:08 +1000)
committerJens Axboe <axboe@kernel.dk>
Wed, 18 Apr 2018 14:24:29 +0000 (08:24 -0600)
So we can check FUA support status from the iomap direct IO code.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blkdev.h

index 9af3e0f430bcbedd114f40c8be05f91dfe03a2cf..c362aadfe0369ac3007e48790bc81e60ff1a287a 100644 (file)
@@ -737,6 +737,7 @@ bool blk_queue_flag_test_and_clear(unsigned int flag, struct request_queue *q);
 #define blk_queue_quiesced(q)  test_bit(QUEUE_FLAG_QUIESCED, &(q)->queue_flags)
 #define blk_queue_preempt_only(q)                              \
        test_bit(QUEUE_FLAG_PREEMPT_ONLY, &(q)->queue_flags)
+#define blk_queue_fua(q)       test_bit(QUEUE_FLAG_FUA, &(q)->queue_flags)
 
 extern int blk_set_preempt_only(struct request_queue *q);
 extern void blk_clear_preempt_only(struct request_queue *q);