From: Jeffrey Altman Date: Wed, 18 Dec 2013 05:07:55 +0000 (-0500) Subject: Windows: BUF_HASH use opr_jhash_int2 X-Git-Tag: openafs-stable-1_8_0pre1~864 X-Git-Url: http://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=4f1d4b63a90e85fd0c2edc592d18bdbe6a0b07f8 Windows: BUF_HASH use opr_jhash_int2 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 Reviewed-by: Jeffrey Altman --- diff --git a/src/WINNT/afsd/cm_buf.h b/src/WINNT/afsd/cm_buf.h index a316cb1..bef5a8b 100644 --- a/src/WINNT/afsd/cm_buf.h +++ b/src/WINNT/afsd/cm_buf.h @@ -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))