[PATCH] aio: ring wrapping simplification
authorKen Chen <kenneth.w.chen@intel.com>
Sun, 1 May 2005 15:59:15 +0000 (08:59 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 1 May 2005 15:59:15 +0000 (08:59 -0700)
commit4bf69b2a06090c01c27f25ea5cd1440f7bf9256f
tree35bed1e865ee9f8b086954d866cee9c1c2b92b0f
parent212079cf4ee99e492a57b817e796825d423a30bb
[PATCH] aio: ring wrapping simplification

Since the tail pointer in aio_ring structure never wrap ring size more than
once, so a simple compare is sufficient to wrap the index around.  This avoid
a more expensive mod operation.

Signed-off-by: Ken Chen <kenneth.w.chen@intel.com>
Cc: Benjamin LaHaise <bcrl@kvack.org>
Cc: Suparna Bhattacharya <suparna@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/aio.c