summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-07-06 16:53:05 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-07-06 16:53:05 +0000
commit23884461c6707dbaaaf206bb21106a682d099b14 (patch)
tree75be407682701035eca3a059d2c35e0620932ea7
parentc6598c30a7a0bab91ee6df65a2d54f1c2150b694 (diff)
use NFSSERVER || NFSCLIENT instead of NFS
-rw-r--r--sys/vm/vm_swap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/vm/vm_swap.c b/sys/vm/vm_swap.c
index 0675abd209f..86d5ee0b5f8 100644
--- a/sys/vm/vm_swap.c
+++ b/sys/vm/vm_swap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_swap.c,v 1.10 1999/05/24 17:08:37 weingart Exp $ */
+/* $OpenBSD: vm_swap.c,v 1.11 1999/07/06 16:53:04 deraadt Exp $ */
/* $NetBSD: vm_swap.c,v 1.64 1998/11/08 19:45:17 mycroft Exp $ */
/*
@@ -534,9 +534,9 @@ swap_on(p, sdp)
#ifdef SWAP_TO_FILES
struct vattr va;
#endif
-#ifdef NFS
+#if defined(NFSSERVER) || defined(NFSCLIENT)
extern int (**nfsv2_vnodeop_p) __P((void *));
-#endif /* NFS */
+#endif /* defined(NFSSERVER) || defined(NFSCLIENT) */
dev_t dev = sdp->swd_dev;
char *name;
@@ -570,11 +570,11 @@ swap_on(p, sdp)
goto bad;
sdp->swd_bsize = vp->v_mount->mnt_stat.f_iosize;
-#ifdef NFS
+#if defined(NFSSERVER) || defined(NFSCLIENT)
if (vp->v_op == nfsv2_vnodeop_p)
sdp->swd_maxactive = 2; /* XXX */
else
-#endif /* NFS */
+#endif /* defined(NFSSERVER) || defined(NFSCLIENT) */
sdp->swd_maxactive = 8; /* XXX */
break;
#endif