diff options
author | Matthew Wilcox <willy@linux.intel.com> | 2016-03-17 14:22:06 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-03-17 15:09:34 -0700 |
commit | 7165092fe5ca70bae722ac6cd78421cfd0eec18d (patch) | |
tree | 93714621a6b7e4c7ba20677a5c7f408795132e8c /mm/page_poison.c | |
parent | 2cf938aae17203426a89b5955bd1c9668657bfa8 (diff) | |
download | op-kernel-dev-7165092fe5ca70bae722ac6cd78421cfd0eec18d.zip op-kernel-dev-7165092fe5ca70bae722ac6cd78421cfd0eec18d.tar.gz |
radix-tree,shmem: introduce radix_tree_iter_next()
shmem likes to occasionally drop the lock, schedule, then reacqire the
lock and continue with the iteration from the last place it left off.
This is currently done with a pretty ugly goto. Introduce
radix_tree_iter_next() and use it throughout shmem.c.
[koct9i@gmail.com: fix bug in radix_tree_iter_next() for tagged iteration]
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Konstantin Khlebnikov <koct9i@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_poison.c')
0 files changed, 0 insertions, 0 deletions