summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2005-01-04 05:36:27 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-04 05:36:27 -0800
commit14c1f34c98bf667eb1bd4823871d57e298555e96 (patch)
tree10cb89ace03ecdaa7669c39a1090089c203cbd49 /include/linux
parent0f6c5fa141e625b68f69083eebf2eb727c40882b (diff)
[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 <werner@almesberger.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/prio_tree.h1
1 files changed, 1 insertions, 0 deletions
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) \