afs: Call afs_FindVCache with DO_STATS, not 1
[openafs.git] / src / afs / afs_disconnected.c
index d114928..b6d480f 100644 (file)
@@ -263,7 +263,7 @@ afs_GetVnodeName(struct vcache *avc, struct VenusFid *afid, char *aname,
 
        /* Get the parent dir's vcache that contains the shadow fid. */
        ObtainSharedLock(&afs_xvcache, 755);
-       parent_vc = afs_FindVCache(&parent_fid, 1);
+       parent_vc = afs_FindVCache(&parent_fid, DO_STATS);
        ReleaseSharedLock(&afs_xvcache);
        if (!parent_vc) {
            return ENETDOWN;
@@ -334,7 +334,7 @@ chk_del_children_hook(void *hdata, char *aname, afs_int32 vnode,
     tfid.Fid.Unique = unique;
 
     ObtainSharedLock(&afs_xvcache, 757);
-    tvc = afs_FindVCache(&tfid, 1);
+    tvc = afs_FindVCache(&tfid, DO_STATS);
     ReleaseSharedLock(&afs_xvcache);
 
     /* Count unfinished dirty children. */
@@ -415,7 +415,7 @@ fix_children_fids_hook(void *hdata, char *aname, afs_int32 vnode,
 
        /* Get the vcache. */
        ObtainSharedLock(&afs_xvcache, 759);
-       tvc = afs_FindVCache(&tfid, 1);
+       tvc = afs_FindVCache(&tfid, DO_STATS);
        ReleaseSharedLock(&afs_xvcache);
 
        /* Change the fields. */
@@ -519,7 +519,7 @@ afs_GetParentVCache(struct vcache *avc, int deleted, struct VenusFid *afid,
     }
 
     ObtainSharedLock(&afs_xvcache, 766);
-    *adp = afs_FindVCache(afid, 1);
+    *adp = afs_FindVCache(afid, DO_STATS);
     ReleaseSharedLock(&afs_xvcache);
     if (!*adp) {
        /* printf("afs_GetParentVCache: Couldn't find parent dir's vcache\n"); */
@@ -1402,7 +1402,7 @@ afs_GenShadowFid(struct VenusFid *afid)
 
        /* Is this a used vnode? */
        ObtainSharedLock(&afs_xvcache, 762);
-       tvc = afs_FindVCache(afid, 1);
+       tvc = afs_FindVCache(afid, DO_STATS);
        ReleaseSharedLock(&afs_xvcache);
        if (tvc)
            afs_PutVCache(tvc);