mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
fs: add O_DIRECT and aio support for sending down write life time hints
Reviewed-by: Andreas Dilger <[email protected]> Reviewed-by: Martin K. Petersen <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
f793dfd3f3
commit
45d06cf701
4 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue