diff options
author | Cody P Schafer <cody@linux.vnet.ibm.com> | 2013-09-11 14:25:11 -0700 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-03-20 17:44:43 +0900 |
commit | 67d807339379a050b370c888a0d883eafd482ec8 (patch) | |
tree | 96328172d00605f69ea034d92c6e4975faedcd95 /drivers/misc/modem_if | |
parent | aac75afc4fe3c531fbad7a8a6d2f89c7329816eb (diff) | |
download | linux-3.10-67d807339379a050b370c888a0d883eafd482ec8.tar.gz linux-3.10-67d807339379a050b370c888a0d883eafd482ec8.tar.bz2 linux-3.10-67d807339379a050b370c888a0d883eafd482ec8.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.
Change-Id: I8442bc3efc79dca08bfbc6ebb63607cf4e83bcf6
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 'drivers/misc/modem_if')
0 files changed, 0 insertions, 0 deletions