OSDN Git Service

aio: simplify KIOCB_KEY handling
authorChristoph Hellwig <hch@lst.de>
Fri, 30 Mar 2018 09:19:25 +0000 (11:19 +0200)
committerChristoph Hellwig <hch@lst.de>
Sat, 26 May 2018 07:16:44 +0000 (09:16 +0200)
commitf3a2752a43de18eb2eafa869d06f6e423ff0ce61
treed61a9607b92e1bd3059af7f1cfbcb2965c5e522d
parent3deb642f0de4c14f37437dd247f9c77839f043f8
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>
fs/aio.c
include/linux/aio.h