]> git.baikalelectronics.ru Git - kernel.git/commit
rhashtable: abstract out function to get hash
authorTom Herbert <tom@quantonium.net>
Mon, 4 Dec 2017 18:31:43 +0000 (10:31 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Dec 2017 14:58:38 +0000 (09:58 -0500)
commit7fc75b7691219b2ef5223a608b1cffc53767de88
tree20589b1f38ef6c5a12d38bfe2c923c4d519ab64f
parentf1afb62099be4c4e61db66f82a420d0e699fabc1
rhashtable: abstract out function to get hash

Split out most of rht_key_hashfn which is calculating the hash into
its own function. This way the hash function can be called separately to
get the hash value.

Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Tom Herbert <tom@quantonium.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/rhashtable.h