Skip to content

Commit

Permalink
block: don't use REQ_SYNC in the READ_SYNC definition
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig authored and Jens Axboe committed Nov 1, 2016
1 parent 67f055c commit 6f6b291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6f6b291

Please sign in to comment.