summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2016-11-01 16:40:07 +0300
committerJens Axboe <axboe@fb.com>2016-11-01 18:43:26 +0300
commit6f6b29171a192e84b666c816e49d2175afbbb09f (patch)
tree13b6f316a9ff85b4b7a8d1317654484e53769153
parent67f055c798c72c49ee0c844eae0cd6e9c83b1b16 (diff)
downloadlinux-6f6b29171a192e84b666c816e49d2175afbbb09f.tar.xz
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>
-rw-r--r--include/linux/fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index e3e878f12b25..5e0078fceed7 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -196,7 +196,7 @@ typedef int (dio_iodone_t)(struct kiocb *iocb, loff_t offset,
#define READ REQ_OP_READ
#define WRITE REQ_OP_WRITE
-#define READ_SYNC REQ_SYNC
+#define READ_SYNC 0
#define WRITE_SYNC (REQ_SYNC | REQ_NOIDLE)
#define WRITE_ODIRECT REQ_SYNC
#define WRITE_FLUSH (REQ_SYNC | REQ_NOIDLE | REQ_PREFLUSH)