dux-call-flushpages-with-cred-20020823

we weren't passing in creds before. do so.
This commit is contained in:
Derrick Brashear 2002-08-23 05:29:38 +00:00
parent c5a2487ea8
commit 6f7e6bf112

View File

@ -450,7 +450,7 @@ mp_afs_ubcrdwr(avc, uio, ioflag, cred)
return EISDIR; /* can't read or write other things */
}
afs_BozonLock(&avc->pvnLock, avc);
osi_FlushPages(avc); /* hold bozon lock, but not basic vnode lock */
osi_FlushPages(avc, cred); /* hold bozon lock, but not basic vnode lock */
ObtainWriteLock(&avc->lock,162);
/* adjust parameters when appending files */
if ((ioflag & IO_APPEND) && uio->uio_rw == UIO_WRITE)
@ -718,7 +718,7 @@ mp_afs_mmap(avc, offset, map, addrp, len, prot, maxprot, flags, cred)
return code;
}
afs_BozonLock(&avc->pvnLock, avc);
osi_FlushPages(avc); /* ensure old pages are gone */
osi_FlushPages(avc, cred); /* ensure old pages are gone */
afs_BozonUnlock(&avc->pvnLock, avc);
ObtainWriteLock(&avc->lock,166);
avc->states |= CMAPPED;