diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-03-23 16:50:21 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-24 05:07:51 +0300 |
commit | 31ccde2dacea8375c3a7d6fffbf0060ee0d40214 (patch) | |
tree | 82c65efdd9369d9793996e568ada542ab54bc3c7 /fs/xfs/xfs_aops.c | |
parent | de91b25c8011089f5dd99b9d24743db1f550ca4b (diff) | |
download | linux-31ccde2dacea8375c3a7d6fffbf0060ee0d40214.tar.xz |
rhashtable: Allow hashfn to be unset
Since every current rhashtable user uses jhash as their hash
function, the fact that jhash is an inline function causes each
user to generate a copy of its code.
This function provides a solution to this problem by allowing
hashfn to be unset. In which case rhashtable will automatically
set it to jhash. Furthermore, if the key length is a multiple
of 4, we will switch over to jhash2.
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>
Diffstat (limited to 'fs/xfs/xfs_aops.c')
0 files changed, 0 insertions, 0 deletions