summaryrefslogtreecommitdiff
path: root/nfs/cache.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1996-08-14 18:10:19 +0000
committerThomas Bushnell <thomas@gnu.org>1996-08-14 18:10:19 +0000
commit2026ce0437cca8cb15149a5c488f93110f69131d (patch)
tree7bdeded20cbe0cc5222cb8aeeb773f761cc7cc79 /nfs/cache.c
parent332efe88b6fbf47a33cd27a4b9b22276a30c181f (diff)
*** empty log message ***
Diffstat (limited to 'nfs/cache.c')
-rw-r--r--nfs/cache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nfs/cache.c b/nfs/cache.c
index 65b46575..b6577440 100644
--- a/nfs/cache.c
+++ b/nfs/cache.c
@@ -33,7 +33,7 @@ hash (void *fhandle)
unsigned int h = 0;
int i;
- for (i = 0; i < NFS_FHSIZE; i++)
+ for (i = 0; i < NFS2_FHSIZE; i++)
h += ((char *)fhandle)[i];
return h % CACHESIZE;
@@ -53,7 +53,7 @@ lookup_fhandle (void *fhandle)
spin_lock (&netfs_node_refcnt_lock);
for (np = nodehash[h]; np; np = np->nn->hnext)
{
- if (bcmp (np->nn->handle, fhandle, NFS_FHSIZE) != 0)
+ if (bcmp (np->nn->handle, fhandle, NFS2_FHSIZE) != 0)
continue;
np->references++;
@@ -63,7 +63,7 @@ lookup_fhandle (void *fhandle)
}
nn = malloc (sizeof (struct netnode));
- bcopy (fhandle, nn->handle, NFS_FHSIZE);
+ bcopy (fhandle, nn->handle, NFS2_FHSIZE);
nn->stat_updated = 0;
nn->dtrans = NOT_POSSIBLE;
nn->dead_dir = 0;
@@ -135,7 +135,7 @@ recache_handle (struct node *np, void *handle)
if (np->nn->hnext)
np->nn->hnext->nn->hprevp = np->nn->hprevp;
- bcopy (handle, np->nn->handle, NFS_FHSIZE);
+ bcopy (handle, np->nn->handle, NFS2_FHSIZE);
h = hash (handle);
np->nn->hnext = nodehash[h];