diff options
author | Jens Axboe <axboe@kernel.dk> | 2017-06-27 19:01:22 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-06-27 20:05:36 +0200 |
commit | 45d06cf701a3866e0d246789039a46370af60223 (patch) | |
tree | 302e1b84ff0e62cf04fbc1d002008fdc637eabdd /fs/iomap.c | |
parent | blk-mq: expose write hints through debugfs (diff) | |
download | linux-45d06cf701a3866e0d246789039a46370af60223.tar.xz linux-45d06cf701a3866e0d246789039a46370af60223.zip |
fs: add O_DIRECT and aio support for sending down write life time hints
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/iomap.c')
-rw-r--r-- | fs/iomap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/iomap.c b/fs/iomap.c index c71a64b97fba..fa6cd5b3f578 100644 --- a/fs/iomap.c +++ b/fs/iomap.c @@ -793,6 +793,7 @@ iomap_dio_actor(struct inode *inode, loff_t pos, loff_t length, bio->bi_bdev = iomap->bdev; bio->bi_iter.bi_sector = iomap->blkno + ((pos - iomap->offset) >> 9); + bio->bi_write_hint = dio->iocb->ki_hint; bio->bi_private = dio; bio->bi_end_io = iomap_dio_bio_end_io; |