Re: [PATCH 1/5] rbtree: add postorder iteration functions

2013-07-30 Thread Seth Jennings
On Fri, Jul 26, 2013 at 02:13:39PM -0700, Cody P Schafer wrote: > Add postorder iteration functions for rbtree. These are useful for > safely freeing an entire rbtree without modifying the tree at all. > > Signed-off-by: Cody P Schafer > --- > include/linux/rbtree.h | 4 > lib/rbtree.c

Re: [PATCH 1/5] rbtree: add postorder iteration functions

2013-07-29 Thread Cody P Schafer
On 07/29/2013 08:01 AM, Seth Jennings wrote: On Fri, Jul 26, 2013 at 02:13:39PM -0700, Cody P Schafer wrote: diff --git a/lib/rbtree.c b/lib/rbtree.c index c0e31fe..65f4eff 100644 --- a/lib/rbtree.c +++ b/lib/rbtree.c @@ -518,3 +518,43 @@ void rb_replace_node(struct rb_node *victim, struct rb_n

[PATCH 1/5] rbtree: add postorder iteration functions

2013-07-26 Thread Cody P Schafer
Add postorder iteration functions for rbtree. These are useful for safely freeing an entire rbtree without modifying the tree at all. Signed-off-by: Cody P Schafer --- include/linux/rbtree.h | 4 lib/rbtree.c | 40 2 files changed, 44 inse