Re: [patch] kill pointless ki_nbytes assignment in aio_setup_single_vector

2006-12-04 Thread Zach Brown
Chen, Kenneth W wrote: > 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

[patch] kill pointless ki_nbytes assignment in aio_setup_single_vector

2006-12-04 Thread Chen, Kenneth W
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 <[EMAIL PROTECTED]> diff -Nurp

[patch] kill pointless ki_nbytes assignment in aio_setup_single_vector

2006-12-04 Thread Chen, Kenneth W
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 [EMAIL PROTECTED] diff -Nurp

Re: [patch] kill pointless ki_nbytes assignment in aio_setup_single_vector

2006-12-04 Thread Zach Brown
Chen, Kenneth W wrote: 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