mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -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
1
fs/aio.c
1
fs/aio.c
|
|
@ -1568,6 +1568,7 @@ static int io_submit_one(struct kioctx *ctx, struct iocb __user *user_iocb,
|
|||
req->common.ki_pos = iocb->aio_offset;
|
||||
req->common.ki_complete = aio_complete;
|
||||
req->common.ki_flags = iocb_flags(req->common.ki_filp);
|
||||
req->common.ki_hint = file_write_hint(file);
|
||||
|
||||
if (iocb->aio_flags & IOCB_FLAG_RESFD) {
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue