[3/4] blk: add blk_queue_fua() helper function
diff mbox

Message ID 20180418040828.18165-4-david@fromorbit.com
State New
Headers show

Commit Message

Dave Chinner April 18, 2018, 4:08 a.m. UTC
From: Dave Chinner <dchinner@redhat.com>

So we can check FUA support status from the iomap direct IO code.

Signed-Off-By: Dave Chinner <dchinner@redhat.com>
---
 include/linux/blkdev.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Christoph Hellwig April 18, 2018, 10:34 a.m. UTC | #1
s/blk/block/ for block patches.

Otherwise looks fine:

Reviewed-by: Christoph Hellwig <hch@lst.de>
Jens Axboe April 18, 2018, 2:23 p.m. UTC | #2
On 4/17/18 10:08 PM, Dave Chinner wrote:
> From: Dave Chinner <dchinner@redhat.com>
> 
> So we can check FUA support status from the iomap direct IO code.

Applied, thanks.

Patch
diff mbox

diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 9af3e0f430bc..c362aadfe036 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);