Remove support for Solaris pre-8
[openafs.git] / src / afs / SOLARIS / osi_vm.c
index f473214..4914120 100644 (file)
 #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>
@@ -113,12 +110,8 @@ void
 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();
 }
 
@@ -129,16 +122,11 @@ osi_VM_StoreAllSegments(struct vcache *avc)
  * 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();
 }
 
@@ -147,7 +135,7 @@ osi_VM_TryToSmush(struct vcache *avc, struct AFS_UCRED *acred, int sync)
  * 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;
 
@@ -164,7 +152,7 @@ osi_VM_FlushPages(struct vcache *avc, struct AFS_UCRED *credp)
  * 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);
@@ -190,7 +178,7 @@ osi_VM_PreTruncate(struct vcache *avc, int alen, struct AFS_UCRED *acred)
  * 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
@@ -199,5 +187,3 @@ osi_VM_Truncate(struct vcache *avc, int alen, struct AFS_UCRED *acred)
     pvn_vplist_dirty(AFSTOV(avc), alen, afs_putapage, B_TRUNC | B_INVAL,
                     acred);
 }
-
-#endif /* SUN5 && !NCR */