rculfhash: Simplify lookup_bucket()
authorLai Jiangshan <laijs@cn.fujitsu.com>
Mon, 17 Oct 2011 14:19:10 +0000 (10:19 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 17 Oct 2011 14:19:10 +0000 (10:19 -0400)
commita4ea2223fa701bd34b09fb3eede037908dbdd0c8
tree8d9198535aec4b428b47b8ff44fa108a85999fd2
parent960c9e4ff8e6028f5a0d4b1c1d747b20f08c5177
rculfhash: Simplify lookup_bucket()

They are the same, but I don't think the compiler can optimize it.

And it also helps for understanding the following code.

[ Edit by Mathieu Desnoyers:
  - Add a comment that describes the equivalence between get_count_order
    and fls for this lookup of index + 1. ]

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
rculfhash.c
This page took 0.025138 seconds and 4 git commands to generate.