int flags = ap->a_cnp->cn_flags;
int lockparent; /* 1 => lockparent flag is set */
int wantparent; /* 1 => wantparent or lockparent flag */
+#ifndef AFS_FBSD80_ENV
struct thread *p = ap->a_cnp->cn_thread;
+#endif
dvp = ap->a_dvp;
if (dvp->v_type != VDIR) {
lockparent = flags & LOCKPARENT;
wantparent = flags & (LOCKPARENT | WANTPARENT);
-#ifdef AFS_FBSD80_ENV
cnp->cn_flags |= MPSAFE; /* steel */
-#endif
#ifndef AFS_FBSD70_ENV
if (flags & ISDOTDOT)
int error = 0;
struct vcache *vcp;
struct vnode *dvp = ap->a_dvp;
+#ifndef AFS_FBSD80_ENV
struct thread *p = ap->a_cnp->cn_thread;
+#endif
GETNAME();
AFS_GLOCK();
struct vcache *avc = VTOAFS(ap->a_vp);
AFS_GLOCK();
osi_FlushPages(avc, ap->a_cred); /* hold bozon lock, but not basic vnode lock */
- code = afs_read(avc, ap->a_uio, ap->a_cred, 0, 0, 0);
+ code = afs_read(avc, ap->a_uio, ap->a_cred, 0);
AFS_GUNLOCK();
return code;
}
AFS_GLOCK();
osi_FlushPages(avc, osi_curcred()); /* hold bozon lock, but not basic vnode lock */
- code = afs_read(avc, &uio, osi_curcred(), 0, 0, 0);
+ code = afs_read(avc, &uio, osi_curcred(), 0);
AFS_GUNLOCK();
pmap_qremove(kva, npages);
* Read operation filled a partial page.
*/
m->valid = 0;
- vm_page_set_valid(m, 0, size - toff);
-#ifndef AFS_FBSD80_ENV
- vm_page_undirty(m);
-#else
+ vm_page_set_validclean(m, 0, size - toff);
KASSERT(m->dirty == 0, ("afs_getpages: page %p is dirty", m));
-#endif
}
if (i != ap->a_reqpage) {
int error = 0;
struct vnode *dvp = ap->a_tdvp;
struct vnode *vp = ap->a_vp;
+#ifndef AFS_FBSD80_ENV
struct thread *p = ap->a_cnp->cn_thread;
+#endif
GETNAME();
if (dvp->v_mount != vp->v_mount) {
struct vnode *tdvp = ap->a_tdvp;
struct vnode *fvp = ap->a_fvp;
struct vnode *fdvp = ap->a_fdvp;
+#ifndef AFS_FBSD80_ENV
struct thread *p = fcnp->cn_thread;
+#endif
/*
* Check for cross-device rename.
struct vattr *vap = ap->a_vap;
int error = 0;
struct vcache *vcp;
+#ifndef AFS_FBSD80_ENV
struct thread *p = ap->a_cnp->cn_thread;
+#endif
GETNAME();
#ifdef DIAGNOSTIC
return error;
}
-extern int prtactive;
-
int
afs_vop_inactive(ap)
struct vop_inactive_args /* {
{
struct vnode *vp = ap->a_vp;
- if (prtactive && vp->v_usecount != 0)
- vprint("afs_vop_inactive(): pushing active", vp);
-
AFS_GLOCK();
afs_InactiveVCache(VTOAFS(vp), 0); /* decrs ref counts */
AFS_GUNLOCK();
ObtainWriteLock(&afs_xvcache, 901);
/* reclaim the vnode and the in-memory vcache, but keep the on-disk vcache */
code = afs_FlushVCache(avc, &slept);
+
+ if (avc->f.states & CVInit) {
+ avc->f.states &= ~CVInit;
+ afs_osi_Wakeup(&avc->f.states);
+ }
+
if (!haveVlock)
ReleaseWriteLock(&afs_xvcache);
if (!haveGlock)
AFS_GLOCK();
error =
- afs_lockctl(VTOAFS(ap->a_vp), ap->a_fl, ap->a_op, &cr, (int)ap->a_id);
+ afs_lockctl(VTOAFS(ap->a_vp),
+ ap->a_fl,
+ ap->a_op, &cr,
+ (int)(intptr_t)ap->a_id); /* XXX: no longer unique! */
AFS_GUNLOCK();
return error;
}