aboutsummaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-03-11 09:43:48 +1100
committerDavid S. Miller <davem@davemloft.net>2015-03-11 16:36:21 -0400
commitaa34a6cb0478842452bac58edb50d3ef9e178c92 (patch)
treef975994728a196f38a260207fd81880b84f1409c /samples
parentrhashtable: Move hash_rnd into bucket_table (diff)
downloadlinux-dev-aa34a6cb0478842452bac58edb50d3ef9e178c92.tar.xz
linux-dev-aa34a6cb0478842452bac58edb50d3ef9e178c92.zip
rhashtable: Add arbitrary rehash function
This patch adds a rehash function that supports the use of any hash function for the new table. This is needed to support changing the random seed value during the lifetime of the hash table. However for now the random seed value is still constant and the rehash function is simply used to replace the existing expand/shrink functions. [ ASSERT_BUCKET_LOCK() and thus debug_dump_table() + debug_dump_buckets() are not longer used, so delete them entirely. -DaveM ] Signed-off-by: Herbert Xu <herbert.xu@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions