]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lib/scatterlist: use page iterator in the mapping iterator
authorImre Deak <imre.deak@intel.com>
Wed, 20 Feb 2013 02:15:33 +0000 (13:15 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:53:19 +0000 (16:53 +1100)
commitbe382d757273b02c28e12fa657e8b12dc6dbd807
treee9e575d3906e5400da5a833a3271458b5c0605f0
parent927664a09d9e3365ee5c92c02398864410784d31
lib/scatterlist: use page iterator in the mapping iterator

For better code reuse use the newly added page iterator to iterate through
the pages.  The offset, length within the page is still calculated by the
mapping iterator as well as the actual mapping.  Idea from Tejun Heo.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Cc: Maxim Levitsky <maximlevitsky@gmail.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/scatterlist.h
lib/scatterlist.c