summaryrefslogtreecommitdiff
path: root/include/linux/aio.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-03-30 11:19:25 +0200
committerChristoph Hellwig <hch@lst.de>2018-05-26 09:16:44 +0200
commitf3a2752a43de18eb2eafa869d06f6e423ff0ce61 (patch)
treed61a9607b92e1bd3059af7f1cfbcb2965c5e522d /include/linux/aio.h
parent3deb642f0de4c14f37437dd247f9c77839f043f8 (diff)
aio: simplify KIOCB_KEY handling
No need to pass the key field to lookup_iocb to compare it with KIOCB_KEY, as we can do that right after retrieving it from userspace. Also move the KIOCB_KEY definition to aio.c as it is an internal value not used by any other place in the kernel. Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/linux/aio.h')
-rw-r--r--include/linux/aio.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/aio.h b/include/linux/aio.h
index 9d8aabecfe2d..b83e68dd006f 100644
--- a/include/linux/aio.h
+++ b/include/linux/aio.h
@@ -8,8 +8,6 @@ struct kioctx;
struct kiocb;
struct mm_struct;
-#define KIOCB_KEY 0
-
typedef int (kiocb_cancel_fn)(struct kiocb *);
/* prototypes */