From: Gu Zheng Date: Mon, 29 Apr 2013 18:55:52 +0000 (-0700) Subject: fs/block_dev.c: fix iov_shorten() criteria in blkdev_aio_read() X-Git-Tag: omap-for-v3.10/fixes-for-merge-window-part2~11^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f8f5c260af67fed49fe14efc3ad1f69654c260e;p=pandora-kernel.git fs/block_dev.c: fix iov_shorten() criteria in blkdev_aio_read() blkdev_aio_read() test 'size' to see if it is equal or greater than the target count we request(iocb->ki_left). If so there is no need to call iov_shorten() to reduce number of segments and the iovec's length. So the judgement should be changed to 'if (size < iocb->ki_left)' instead. Signed-off-by: Jianpeng Ma Signed-off-by: Gu Zheng Cc: Al Viro Cc: Jens Axboe Signed-off-by: Andrew Morton Signed-off-by: Jens Axboe --- Reading git-diff-tree failed