From: Alexander Duyck Date: Wed, 31 Dec 2014 18:55:41 +0000 (-0800) Subject: fib_trie: Merge tnode_free and leaf_free into node_free X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~134^2~312^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37fd30f2da573c2625ed29561e5b8eb7b0258860;p=pandora-kernel.git fib_trie: Merge tnode_free and leaf_free into node_free Both the leaf and the tnode had an rcu_head in them, but they had them in slightly different places. Since we now have them in the same spot and know that any node with bits == 0 is a leaf and the rest are either vmalloc or kmalloc tnodes depending on the value of bits it makes it easy to combine the functions and reduce overhead. In addition I have taken advantage of the rcu_head pointer to go ahead and put together a simple linked list instead of using the tnode pointer as this way we can merge either type of structure for freeing. Signed-off-by: Alexander Duyck Signed-off-by: David S. Miller --- Reading git-diff-tree failed