Thread (36 messages) 36 messages, 2 authors, 2017-06-20

Re: [PATCH 06/11] fs: add O_DIRECT support for sending down write life time hints

From: Jens Axboe <axboe@kernel.dk>
Date: 2017-06-19 14:57:54
Also in: linux-fsdevel

On 06/19/2017 12:28 AM, Christoph Hellwig wrote:
On Sat, Jun 17, 2017 at 01:59:49PM -0600, Jens Axboe wrote:
quoted
Reviewed-by: Andreas Dilger <redacted>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
---
 fs/block_dev.c | 2 ++
 fs/direct-io.c | 2 ++
 fs/iomap.c     | 1 +
 3 files changed, 5 insertions(+)
diff --git a/fs/block_dev.c b/fs/block_dev.c
index 519599dddd36..b9222a9d285e 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -239,6 +239,7 @@ __blkdev_direct_IO_simple(struct kiocb *iocb, struct iov_iter *iter,
 			should_dirty = true;
 	} else {
 		bio.bi_opf = dio_bio_write_op(iocb);
+		bio.bi_opf |= write_hint_to_opf(iocb_write_hint(iocb));
Move this into dio_bio_write_op instead of duplicating it?
Good cleanup, will do.


-- 
Jens Axboe
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help