diff options
author | Ken Chen <kenneth.w.chen@intel.com> | 2005-05-01 17:59:15 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-01 17:59:15 +0200 |
commit | 4bf69b2a06090c01c27f25ea5cd1440f7bf9256f (patch) | |
tree | 35bed1e865ee9f8b086954d866cee9c1c2b92b0f /fs/xfs/xfs_trans_priv.h | |
parent | [PATCH] aio: remove superfluous kiocb member initialization (diff) | |
download | linux-4bf69b2a06090c01c27f25ea5cd1440f7bf9256f.tar.xz linux-4bf69b2a06090c01c27f25ea5cd1440f7bf9256f.zip |
[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>
Diffstat (limited to 'fs/xfs/xfs_trans_priv.h')
0 files changed, 0 insertions, 0 deletions