diff options
author | wpaul <wpaul@FreeBSD.org> | 1999-07-30 04:51:35 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1999-07-30 04:51:35 +0000 |
commit | 7f07913dd9d4907b1588c65e612d6a27d349a7e5 (patch) | |
tree | 67d3f9d3c2c4d190f7d2bf28186a230ee2e465bc /sys/nfs | |
parent | 9bf69787ba6dfbf106b448393810d0efb17278c5 (diff) | |
download | FreeBSD-src-7f07913dd9d4907b1588c65e612d6a27d349a7e5.zip FreeBSD-src-7f07913dd9d4907b1588c65e612d6a27d349a7e5.tar.gz |
Close PR #12651: the hash calculation routine has changed in other
parts of the kernel but was not updated in nfs_readdirplusrpc().
Diffstat (limited to 'sys/nfs')
-rw-r--r-- | sys/nfs/nfs_vnops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c index 72e67f6..16b5e91 100644 --- a/sys/nfs/nfs_vnops.c +++ b/sys/nfs/nfs_vnops.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_vnops.c 8.16 (Berkeley) 5/27/95 - * $Id: nfs_vnops.c,v 1.135 1999/07/01 13:32:54 peter Exp $ + * $Id: nfs_vnops.c,v 1.136 1999/07/30 04:02:04 wpaul Exp $ */ @@ -2357,7 +2357,7 @@ nfs_readdirplusrpc(vp, uiop, cred) cnp->cn_hash = 0; for (cp = cnp->cn_nameptr, i = 1; i <= len; i++, cp++) - cnp->cn_hash += (unsigned char)*cp * i; + cnp->cn_hash += (unsigned char)*cp; cache_enter(ndp->ni_dvp, ndp->ni_vp, cnp); } } else { |