Whamcloud - gitweb
LU-16518 misc: use fixed hash code
[fs/lustre-release.git] / lustre / ldlm / ldlm_flock.c
index 770cf94..d7572a2 100644 (file)
@@ -853,7 +853,7 @@ void ldlm_flock_policy_local_to_wire(const union ldlm_policy_data *lpolicy,
 static unsigned
 ldlm_export_flock_hash(struct cfs_hash *hs, const void *key, unsigned mask)
 {
-       return cfs_hash_u64_hash(*(__u64 *)key, mask);
+       return cfs_hash_64(*(__u64 *)key, 0) & mask;
 }
 
 static void *