STABLE12-darwin-creds-update-20030125

pullup from head
This commit is contained in:
Derrick Brashear 2003-01-26 00:02:28 +00:00
parent b7c5c4dd48
commit 0a4ae98d9e

View File

@ -283,7 +283,7 @@ afs_vop_open(ap)
panic("AFS open changed vnode!"); panic("AFS open changed vnode!");
#endif #endif
afs_BozonLock(&vc->pvnLock, vc); afs_BozonLock(&vc->pvnLock, vc);
osi_FlushPages(vc); osi_FlushPages(vc, ap->a_cred);
afs_BozonUnlock(&vc->pvnLock, vc); afs_BozonUnlock(&vc->pvnLock, vc);
AFS_GUNLOCK(); AFS_GUNLOCK();
return error; return error;
@ -306,7 +306,7 @@ afs_vop_close(ap)
else else
code=afs_close(avc, ap->a_fflag, &afs_osi_cred, ap->a_p); code=afs_close(avc, ap->a_fflag, &afs_osi_cred, ap->a_p);
afs_BozonLock(&avc->pvnLock, avc); afs_BozonLock(&avc->pvnLock, avc);
osi_FlushPages(avc); /* hold bozon lock, but not basic vnode lock */ osi_FlushPages(avc, ap->a_cred); /* hold bozon lock, but not basic vnode lock */
afs_BozonUnlock(&avc->pvnLock, avc); afs_BozonUnlock(&avc->pvnLock, avc);
AFS_GUNLOCK(); AFS_GUNLOCK();
#ifdef AFS_DARWIN14_ENV #ifdef AFS_DARWIN14_ENV
@ -381,7 +381,7 @@ afs_vop_read(ap)
struct vcache *avc=VTOAFS(ap->a_vp); struct vcache *avc=VTOAFS(ap->a_vp);
AFS_GLOCK(); AFS_GLOCK();
afs_BozonLock(&avc->pvnLock, avc); afs_BozonLock(&avc->pvnLock, avc);
osi_FlushPages(avc); /* hold bozon lock, but not basic vnode lock */ 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, 0, 0);
afs_BozonUnlock(&avc->pvnLock, avc); afs_BozonUnlock(&avc->pvnLock, avc);
AFS_GUNLOCK(); AFS_GUNLOCK();
@ -458,7 +458,7 @@ afs_vop_pagein(ap)
aiov.iov_base = (caddr_t)ioaddr; aiov.iov_base = (caddr_t)ioaddr;
AFS_GLOCK(); AFS_GLOCK();
afs_BozonLock(&tvc->pvnLock, tvc); afs_BozonLock(&tvc->pvnLock, tvc);
osi_FlushPages(tvc); /* hold bozon lock, but not basic vnode lock */ osi_FlushPages(tvc, ap->a_cred); /* hold bozon lock, but not basic vnode lock */
code=afs_read(tvc, uio, cred, 0, 0, 0); code=afs_read(tvc, uio, cred, 0, 0, 0);
if (code == 0) { if (code == 0) {
ObtainWriteLock(&tvc->lock, 2); ObtainWriteLock(&tvc->lock, 2);
@ -499,7 +499,7 @@ afs_vop_write(ap)
void *object; void *object;
AFS_GLOCK(); AFS_GLOCK();
afs_BozonLock(&avc->pvnLock, avc); afs_BozonLock(&avc->pvnLock, avc);
osi_FlushPages(avc); /* hold bozon lock, but not basic vnode lock */ osi_FlushPages(avc, ap->a_cred); /* hold bozon lock, but not basic vnode lock */
if (UBCINFOEXISTS(ap->a_vp)) if (UBCINFOEXISTS(ap->a_vp))
ubc_clean(ap->a_vp, 1); ubc_clean(ap->a_vp, 1);
if (UBCINFOEXISTS(ap->a_vp)) if (UBCINFOEXISTS(ap->a_vp))
@ -627,7 +627,7 @@ afs_vop_pageout(ap)
AFS_GLOCK(); AFS_GLOCK();
afs_BozonLock(&tvc->pvnLock, tvc); afs_BozonLock(&tvc->pvnLock, tvc);
osi_FlushPages(tvc); /* hold bozon lock, but not basic vnode lock */ osi_FlushPages(tvc, ap->a_cred); /* hold bozon lock, but not basic vnode lock */
ObtainWriteLock(&tvc->lock, 1); ObtainWriteLock(&tvc->lock, 1);
afs_FakeOpen(tvc); afs_FakeOpen(tvc);
ReleaseWriteLock(&tvc->lock); ReleaseWriteLock(&tvc->lock);