From 14c1f34c98bf667eb1bd4823871d57e298555e96 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Tue, 4 Jan 2005 05:36:27 -0800 Subject: [PATCH] prio_tree: roll call to prio_tree_first into prio_tree_next Allow prio_tree_next to be used as the only function for tree traversal, similar to how vma_prio_tree_next works. This patch isn't needed for the generalization, but since it affects the API, it's better to include it first. Signed-off-by: Werner Almesberger Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- include/linux/prio_tree.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/linux') diff --git a/include/linux/prio_tree.h b/include/linux/prio_tree.h index 6356a511f9ee..dae277c3be7c 100644 --- a/include/linux/prio_tree.h +++ b/include/linux/prio_tree.h @@ -29,6 +29,7 @@ static inline void prio_tree_iter_init(struct prio_tree_iter *iter, iter->root = root; iter->r_index = r_index; iter->h_index = h_index; + iter->cur = NULL; } #define INIT_PRIO_TREE_ROOT(ptr) \ -- cgit v1.2.3