lib/scatterlist: export sg_miter_skip()
authorMing Lei <ming.lei@canonical.com>
Tue, 26 Nov 2013 04:43:37 +0000 (12:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Dec 2013 01:56:37 +0000 (17:56 -0800)
commit0d6077f8b48ed2dce8f2466a76c0d574a3b4dbe9
tree2cee9d850ad7bf0ee2e933ed7259a9267fe7aafa
parente05a1fd9468bc99bf67bd81601d46d84d93c21c8
lib/scatterlist: export sg_miter_skip()

sg_copy_buffer() can't meet demand for some drrivers(such usb
mass storage), so we have to use the sg_miter_* APIs to access
sg buffer, then need export sg_miter_skip() for these drivers.

The API is needed for converting to sg_miter_* APIs in USB storage
driver for accessing sg buffer.

Acked-by: Andrew Morton <akpm@linux-foundation.org>
Cc: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Reviewed-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/scatterlist.h
lib/scatterlist.c