]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] aio: kill pointless ki_nbytes assignment in aio_setup_single_vector
authorChen, Kenneth W <kenneth.w.chen@intel.com>
Thu, 7 Dec 2006 04:40:43 +0000 (20:40 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:46 +0000 (08:39 -0800)
commitdeb6fd1a12bd3938f2e6e5b9fe3fdb02d519b139
tree4fe334645cc47277ddac8be16b16e03b6d9dae66
parent22f5fdf1f2acbeff09ebdbb36def758b6d69aecf
[PATCH] aio: kill pointless ki_nbytes assignment in aio_setup_single_vector

io_submit_one assigns ki_left = ki_nbytes = iocb->aio_nbytes, then calls
down to aio_setup_iocb, then to aio_setup_single_vector.  In there,
ki_nbytes is reassigned to the same value it got two call stack above it.
There is no need to do so.

Signed-off-by: Ken Chen <kenneth.w.chen@intel.com>
Acked-by: Zach Brown <zach.brown@oracle.com>
Cc: Benjamin LaHaise <bcrl@kvack.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/aio.c