OpenBSD: Fix parameters in call to afs_close()
[openafs.git] / src / afs / OBSD / osi_vnodeops.c
index 9626d3d..317cb52 100644 (file)
@@ -113,8 +113,6 @@ NONINFRINGEMENT.
 #include "afs/nfsclient.h"
 #include "afs/afs_osidnlc.h"
 
-extern int afs_FlushVS(struct vcache *tvc);
-
 #define M_AFSNODE (M_TEMP-1)   /* XXX */
 
 int afs_obsd_lookup(void *);
@@ -396,7 +394,7 @@ afs_obsd_close(void *v)
     int code;
 
     AFS_GLOCK();
-    code = afs_close(VTOAFS(ap->a_vp), ap->a_fflag, ap->a_cred, ap->a_p);
+    code = afs_close(VTOAFS(ap->a_vp), ap->a_fflag, ap->a_cred);
     AFS_GUNLOCK();
     return code;
 }
@@ -907,7 +905,7 @@ afs_obsd_reclaim(void *v)
     if (!haveVlock)
        ObtainWriteLock(&afs_xvcache, 901);
     /* reclaim the vnode and the in-memory vcache, but keep the on-disk vcache */
-    code = afs_FlushVS(avc);
+    code = afs_FlushVCache(avc, &slept);
     if (!haveVlock)
        ReleaseWriteLock(&afs_xvcache);
     if (!haveGlock)