diff options
author | Imre Deak <imre.deak@intel.com> | 2013-02-27 17:02:56 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-27 19:10:10 -0800 |
commit | a321e91b6d73ed011ffceed384c40d2785cf723b (patch) | |
tree | 525598b796028211e615676f5e3182c630f992f1 /lib/radix-tree.c | |
parent | 5d96bf4d928c883635774d0aba1773f275de055c (diff) | |
download | lwn-a321e91b6d73ed011ffceed384c40d2785cf723b.tar.gz lwn-a321e91b6d73ed011ffceed384c40d2785cf723b.zip |
lib/scatterlist: add simple page iterator
Add an iterator to walk through a scatter list a page at a time starting
at a specific page offset. As opposed to the mapping iterator this is
meant to be small, performing well even in simple loops like collecting
all pages on the scatterlist into an array or setting up an iommu table
based on the pages' DMA address.
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>
Tested-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/radix-tree.c')
0 files changed, 0 insertions, 0 deletions