#include <afsconfig.h>
#include "afs/param.h"
-RCSID
- ("$Header$");
#include "afs/sysincludes.h" /* Standard vendor system headers */
#include "afsincludes.h" /* Afs-based standard headers */
#include "afs/afs_stats.h" /* statistics */
#include "afs/nfsclient.h"
-#if defined(AFS_SUN5_ENV)
/* This file contains Solaris VM-related code for the cache manager. */
#include <sys/mman.h>
osi_VM_StoreAllSegments(struct vcache *avc)
{
AFS_GUNLOCK();
-#if defined(AFS_SUN56_ENV)
(void)pvn_vplist_dirty(AFSTOV(avc), (u_offset_t) 0, afs_putapage, 0,
CRED());
-#else
- (void)pvn_vplist_dirty(AFSTOV(avc), 0, afs_putapage, 0, CRED());
-#endif
AFS_GLOCK();
}
* re-obtained.
*/
void
-osi_VM_TryToSmush(struct vcache *avc, struct AFS_UCRED *acred, int sync)
+osi_VM_TryToSmush(struct vcache *avc, afs_ucred_t *acred, int sync)
{
AFS_GUNLOCK();
-#if defined(AFS_SUN56_ENV)
(void)pvn_vplist_dirty(AFSTOV(avc), (u_offset_t) 0, afs_putapage,
(sync ? B_INVAL : B_FREE), acred);
-#else
- (void)pvn_vplist_dirty(AFSTOV(avc), 0, afs_putapage,
- (sync ? B_INVAL : B_FREE), acred);
-#endif
AFS_GLOCK();
}
* Locking: No lock is held, not even the global lock.
*/
void
-osi_VM_FlushPages(struct vcache *avc, struct AFS_UCRED *credp)
+osi_VM_FlushPages(struct vcache *avc, afs_ucred_t *credp)
{
extern int afs_pvn_vptrunc;
* be called first, since it causes a pagein.
*/
void
-osi_VM_PreTruncate(struct vcache *avc, int alen, struct AFS_UCRED *acred)
+osi_VM_PreTruncate(struct vcache *avc, int alen, afs_ucred_t *acred)
{
page_t *pp;
int pageOffset = (alen & PAGEOFFSET);
* Pageins are blocked (activeV is raised).
*/
void
-osi_VM_Truncate(struct vcache *avc, int alen, struct AFS_UCRED *acred)
+osi_VM_Truncate(struct vcache *avc, int alen, afs_ucred_t *acred)
{
/*
* It's OK to specify afs_putapage here, even though we aren't holding
pvn_vplist_dirty(AFSTOV(avc), alen, afs_putapage, B_TRUNC | B_INVAL,
acred);
}
-
-#endif /* SUN5 && !NCR */