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/direct-io.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/direct-io.c')
-rw-r--r-- | fs/direct-io.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/direct-io.c b/fs/direct-io.c index c87077d1dc33..08cf27811e5a 100644 --- a/fs/direct-io.c +++ b/fs/direct-io.c @@ -385,6 +385,8 @@ dio_bio_alloc(struct dio *dio, struct dio_submit *sdio, else bio->bi_end_io = dio_bio_end_io; + bio->bi_write_hint = dio->iocb->ki_hint; + sdio->bio = bio; sdio->logical_offset_in_bio = sdio->cur_page_fs_offset; } |