Whamcloud - gitweb
LU-16518 misc: use fixed hash code 16/49916/5
authorTimothy Day <timday@amazon.com>
Mon, 6 Feb 2023 20:02:15 +0000 (20:02 +0000)
committerOleg Drokin <green@whamcloud.com>
Wed, 1 Mar 2023 06:18:36 +0000 (06:18 +0000)
commit239e826876e5e20405e14a180a8fd4377d6553b2
tree9e90c28a7bc60b830e3ce80c7fcb5d6585602060
parentfc82aef82daa2cb9c43f83431174319f076c0aa7
LU-16518 misc: use fixed hash code

There is a configure check to avoid using
broken hashing code. All calls to 'hash_*'
are replace by the 'cfs_hash_*' equivalents,
to make use of this check.

Two functions which hash then apply a mask
are removed. The calls are replaced with
'cfs_hash_*' and manually applying the mask.

Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: Ia4b27cb6fb1329b9df45c00f748a8d22178b0654
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49916
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: jsimmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
14 files changed:
libcfs/include/libcfs/libcfs_hash.h
libcfs/include/libcfs/linux/linux-hash.h
libcfs/libcfs/linux/linux-wait.c
lnet/include/lnet/lib-lnet.h
lnet/lnet/api-ni.c
lnet/lnet/lib-ptl.c
lustre/include/lustre_fid.h
lustre/ldlm/ldlm_flock.c
lustre/ldlm/ldlm_lockd.c
lustre/lov/lov_object.c
lustre/obdclass/lu_tgt_descs.c
lustre/osc/osc_quota.c
lustre/ptlrpc/gss/gss_svc_upcall.c
lustre/quota/lquota_entry.c