Skip to content

Commit

Permalink
rhashtable: Add arbitrary rehash function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Herbert Xu authored and David S. Miller committed Mar 11, 2015
1 parent 988dfbd commit aa34a6c
Showing 1 changed file with 174 additions and 332 deletions.
Loading

0 comments on commit aa34a6c

Please sign in to comment.