Skip to content

Commit 0ce9144

Browse files
Dave Chinneraxboe
authored andcommitted
block: add blk_queue_fua() helper function
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>
1 parent 9de4ee4 commit 0ce9144

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/linux/blkdev.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,7 @@ bool blk_queue_flag_test_and_clear(unsigned int flag, struct request_queue *q);
737737
#define blk_queue_quiesced(q) test_bit(QUEUE_FLAG_QUIESCED, &(q)->queue_flags)
738738
#define blk_queue_preempt_only(q) \
739739
test_bit(QUEUE_FLAG_PREEMPT_ONLY, &(q)->queue_flags)
740+
#define blk_queue_fua(q) test_bit(QUEUE_FLAG_FUA, &(q)->queue_flags)
740741

741742
extern int blk_set_preempt_only(struct request_queue *q);
742743
extern void blk_clear_preempt_only(struct request_queue *q);

0 commit comments

Comments
 (0)