diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-07-08 00:54:30 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-07-08 00:54:30 +0000 |
commit | 9da22e11b73dee1f9cccfdbdf00445679ced7f0d (patch) | |
tree | f82b989fcae49ac113ef18b9db61b88affed3c39 /sys/uvm/uvm_swap.c | |
parent | 9161c1e8e3edb4989dbc80c6addfc4f38fc7192a (diff) |
NFS -> NFSSERVER|NFSCLIENT
Diffstat (limited to 'sys/uvm/uvm_swap.c')
-rw-r--r-- | sys/uvm/uvm_swap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/uvm/uvm_swap.c b/sys/uvm/uvm_swap.c index c07679adabe..6c0b22c5ae3 100644 --- a/sys/uvm/uvm_swap.c +++ b/sys/uvm/uvm_swap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_swap.c,v 1.7 1999/06/24 11:37:02 art Exp $ */ +/* $OpenBSD: uvm_swap.c,v 1.8 1999/07/08 00:54:28 deraadt Exp $ */ /* $NetBSD: uvm_swap.c,v 1.23 1998/12/26 06:25:59 marc Exp $ */ /* @@ -825,9 +825,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; char *name; UVMHIST_FUNC("swap_on"); UVMHIST_CALLED(pdhist); @@ -888,11 +888,11 @@ swap_on(p, sdp) * limit the max # of outstanding I/O requests we issue * at any one time. take it easy on NFS servers. */ -#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 |