]> git.baikalelectronics.ru Git - kernel.git/commit
rhashtable: remove indirection for grow/shrink decision functions
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 25 Feb 2015 15:31:54 +0000 (16:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Feb 2015 21:06:02 +0000 (16:06 -0500)
commitafe365b3730aa133f95f00afb9e1ddc56ce63bdf
tree3e4d9c6941729846c3c55c7f256197321311b3aa
parentf6e1cfb881e406084a5c35bda1d3d6b5c34260e2
rhashtable: remove indirection for grow/shrink decision functions

Currently, all real users of rhashtable default their grow and shrink
decision functions to rht_grow_above_75() and rht_shrink_below_30(),
so that there's currently no need to have this explicitly selectable.

It can/should be generic and private inside rhashtable until a real
use case pops up. Since we can make this private, we'll save us this
additional indirection layer and can improve insertion/deletion time
as well.

Reference: http://patchwork.ozlabs.org/patch/443040/
Suggested-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/rhashtable.h
lib/rhashtable.c
lib/test_rhashtable.c
net/netfilter/nft_hash.c
net/netlink/af_netlink.c
net/tipc/socket.c