Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

block: don't use REQ_SYNC in the READ_SYNC definition

Reads are synchronous per definition, don't add another flag for it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>

authored by

Christoph Hellwig and committed by
Jens Axboe
6f6b2917 67f055c7

+1 -1
+1 -1
include/linux/fs.h
··· 196 196 #define READ REQ_OP_READ 197 197 #define WRITE REQ_OP_WRITE 198 198 199 - #define READ_SYNC REQ_SYNC 199 + #define READ_SYNC 0 200 200 #define WRITE_SYNC (REQ_SYNC | REQ_NOIDLE) 201 201 #define WRITE_ODIRECT REQ_SYNC 202 202 #define WRITE_FLUSH (REQ_SYNC | REQ_NOIDLE | REQ_PREFLUSH)