]> git.karo-electronics.de Git - karo-tx-linux.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>
Tue, 31 Mar 2015 15:43:52 +0000 (11:43 -0400)
commit9c4b6f6975acfefcec3195a40bd96f5cfa9edbc9
tree5b6cbf75cb0f4d0d520b9b4f00679fc8901d929d
parentff98167a462997afc2a00faf924e307a62245b0d
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