diff options
author | Adam Manzanares <adam.manzanares@wdc.com> | 2018-05-22 13:52:18 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-05-31 10:50:54 -0400 |
commit | fc28724d67c90ff48b976e0687caf79993160bed (patch) | |
tree | 75a01e8f9ee260b9408c338e7a351e7024127940 /fs/aio.c | |
parent | aa43457799f715d76cb77342baab0615877e2b8a (diff) |
fs: Convert kiocb rw_hint from enum to u16
In order to avoid kiocb bloat for per command iopriority support, rw_hint
is converted from enum to a u16. Added a guard around ki_hint assignment.
Signed-off-by: Adam Manzanares <adam.manzanares@wdc.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/aio.c')
-rw-r--r-- | fs/aio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1434,7 +1434,7 @@ static int aio_prep_rw(struct kiocb *req, struct iocb *iocb) | |||
1434 | req->ki_flags = iocb_flags(req->ki_filp); | 1434 | req->ki_flags = iocb_flags(req->ki_filp); |
1435 | if (iocb->aio_flags & IOCB_FLAG_RESFD) | 1435 | if (iocb->aio_flags & IOCB_FLAG_RESFD) |
1436 | req->ki_flags |= IOCB_EVENTFD; | 1436 | req->ki_flags |= IOCB_EVENTFD; |
1437 | req->ki_hint = file_write_hint(req->ki_filp); | 1437 | req->ki_hint = ki_hint_validate(file_write_hint(req->ki_filp)); |
1438 | ret = kiocb_set_rw_flags(req, iocb->aio_rw_flags); | 1438 | ret = kiocb_set_rw_flags(req, iocb->aio_rw_flags); |
1439 | if (unlikely(ret)) | 1439 | if (unlikely(ret)) |
1440 | fput(req->ki_filp); | 1440 | fput(req->ki_filp); |