From: Dave Chinner Date: Wed, 18 Apr 2018 04:08:27 +0000 (+1000) Subject: block: add blk_queue_fua() helper function X-Git-Tag: v4.19~1138^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ce9144471de9ee09306ca0127e7cd27521ccc3f;p=platform%2Fkernel%2Flinux-rpi.git block: add blk_queue_fua() helper function So we can check FUA support status from the iomap direct IO code. Reviewed-by: Christoph Hellwig Signed-off-by: Dave Chinner Signed-off-by: Jens Axboe --- diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 9af3e0f..c362aad 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -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);