]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaa944dfc9b47381b7bf87e3725aac4756c93293d
treed61a9607b92e1bd3059af7f1cfbcb2965c5e522d
parente102fd38d9925d72d74e76be9b3da0857edffc88
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