]> git.baikalelectronics.ru Git - kernel.git/commit
ioctx_alloc(): remove pointless check
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 31 Mar 2015 15:43:52 +0000 (11:43 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 12 Apr 2015 02:27:54 +0000 (22:27 -0400)
commit4ff747884dcdf230bce2b679984c439aeb631b90
treecc73c51495b875921625093ea30a9bbdbe175e40
parent86c35ec118c800168df90131a23388a77ac75195
ioctx_alloc(): remove pointless check

Way, way back kiocb used to be picked from arrays, so ioctx_alloc()
checked for multiplication overflow when calculating the size of
such array.  By the time fs/aio.c went into the tree (in 2002) they
were already allocated one-by-one by kmem_cache_alloc(), so that
check had already become pointless.  Let's bury it...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/aio.c