]> git.baikalelectronics.ru Git - kernel.git/commit
rhashtable: Move hash_rnd into bucket_table
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 9 Mar 2015 22:27:55 +0000 (09:27 +1100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Mar 2015 20:28:25 +0000 (16:28 -0400)
commitfe2a0fef32b6503e611502ba47a07d681233f27b
tree535e1fbd7224c49386a5de1a8afc16948078489e
parentddc9dad4121c6b1ba76b60c13d75f477325ece40
rhashtable: Move hash_rnd into bucket_table

Currently hash_rnd is a parameter that users can set.  However,
no existing users set this parameter.  It is also something that
people are unlikely to want to set directly since it's just a
random number.

In preparation for allowing the reseeding/rehashing of rhashtable,
this patch moves hash_rnd into bucket_table so that it's now an
internal state rather than a parameter.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/rhashtable.h
lib/rhashtable.c