]> git.baikalelectronics.ru Git - kernel.git/commit
prio_tree: cleanup prio_tree_left()/prio_tree_right()
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Fri, 23 Mar 2012 22:02:15 +0000 (15:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 23 Mar 2012 23:58:36 +0000 (16:58 -0700)
commit3c42cf8c11cadfc5cb393ad38b5257cdc07bee1e
treebeefa4e4759f29917749fcdfb2102adc16d48cda
parent5c6815a4131bb9621a3b8b03c4cfbca815138470
prio_tree: cleanup prio_tree_left()/prio_tree_right()

Introduce iter_walk_down()/iter_walk_up() to remove the common code
between prio_tree_left() and prio_tree_right().

Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/prio_tree.c