]> git.baikalelectronics.ru Git - kernel.git/commit
lib/scatterlist: use page iterator in the mapping iterator
authorImre Deak <imre.deak@intel.com>
Thu, 28 Feb 2013 01:02:57 +0000 (17:02 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Feb 2013 03:10:10 +0000 (19:10 -0800)
commitd8194acc60e2a5962fed94cc02729e618ec76ff4
tree46f73428afef93acc729fd36842e463b503bab58
parentb5a406b702bd2d5365405e8369bebb8b12efb0e3
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>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/mmc/host/dw_mmc.c
include/linux/scatterlist.h
lib/scatterlist.c