summaryrefslogtreecommitdiffstats
path: root/fs/aio.c
diff options
context:
space:
mode:
authorAdam Manzanares <adam.manzanares@wdc.com>2018-05-22 10:52:18 -0700
committerAl Viro <viro@zeniv.linux.org.uk>2018-05-31 10:50:54 -0400
commitfc28724d67c90ff48b976e0687caf79993160bed (patch)
tree75a01e8f9ee260b9408c338e7a351e7024127940 /fs/aio.c
parentaa43457799f715d76cb77342baab0615877e2b8a (diff)
downloadlinux-fc28724d67c90ff48b976e0687caf79993160bed.tar.gz
linux-fc28724d67c90ff48b976e0687caf79993160bed.tar.bz2
linux-fc28724d67c90ff48b976e0687caf79993160bed.zip
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/aio.c b/fs/aio.c
index b850e92ee0d5..33299ece7540 100644
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -1434,7 +1434,7 @@ static int aio_prep_rw(struct kiocb *req, struct iocb *iocb)
req->ki_flags = iocb_flags(req->ki_filp);
if (iocb->aio_flags & IOCB_FLAG_RESFD)
req->ki_flags |= IOCB_EVENTFD;
- req->ki_hint = file_write_hint(req->ki_filp);
+ req->ki_hint = ki_hint_validate(file_write_hint(req->ki_filp));
ret = kiocb_set_rw_flags(req, iocb->aio_rw_flags);
if (unlikely(ret))
fput(req->ki_filp);