Windows: BUF_HASH use opr_jhash_int2
authorJeffrey Altman <jaltman@your-file-system.com>
Wed, 18 Dec 2013 05:07:55 +0000 (00:07 -0500)
committerJeffrey Altman <jaltman@your-file-system.com>
Tue, 24 Dec 2013 14:15:30 +0000 (06:15 -0800)
BUF_HASH takes to 4-byte integers not three and therefore cannot use
the basic opr_jhash which assumes a minimum of three 4-byte integers.

Change-Id: I7f30351025b3e9cd2156f772b0ed550b20964ad7
Reviewed-on: http://gerrit.openafs.org/10624
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>

src/WINNT/afsd/cm_buf.h

index a316cb1..bef5a8b 100644 (file)
@@ -28,7 +28,7 @@
 extern int buf_cacheType;
 
 #define BUF_HASH(fidp, offsetp) \
-    (opr_jhash((uint32_t *)(offsetp), 2, (fidp)->hash) & (cm_data.buf_hashSize - 1))
+    (opr_jhash_int2((offsetp)->LowPart, (offsetp)->HighPart, (fidp)->hash) & (cm_data.buf_hashSize - 1))
 
 #define BUF_FILEHASH(fidp) ((fidp)->hash & (cm_data.buf_hashSize - 1))