diff options
| author | 2013-09-11 14:25:11 -0700 | |
|---|---|---|
| committer | 2013-09-11 15:59:20 -0700 | |
| commit | 2b529089257705499207ce7da9d0e3ae26a844ba (patch) | |
| tree | fffde388176946c7de6eaddd4e7bdd2b7ea27ffd /lib/rbtree_test.c | |
| parent | rbtree: add postorder iteration functions (diff) | |
| download | wireguard-linux-2b529089257705499207ce7da9d0e3ae26a844ba.tar.xz wireguard-linux-2b529089257705499207ce7da9d0e3ae26a844ba.zip | |
rbtree: add rbtree_postorder_for_each_entry_safe() helper
Because deletion (of the entire tree) is a relatively common use of the
rbtree_postorder iteration, and because doing it safely means fiddling
with temporary storage, provide a helper to simplify postorder rbtree
iteration.
Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com>
Reviewed-by: Seth Jennings <sjenning@linux.vnet.ibm.com>
Cc: David Woodhouse <David.Woodhouse@intel.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Michel Lespinasse <walken@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/rbtree_test.c')
0 files changed, 0 insertions, 0 deletions
