diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2000-01-05 08:49:07 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2000-01-05 08:49:07 +0000 |
commit | dc4781d98ee9a665ec37ad243a9d5f6c104a0742 (patch) | |
tree | 3b835a6dfa387a64ae3b42c787b99801c937381b | |
parent | e21a608350688ea6eab17910be3849039cac7ee8 (diff) |
nfs vnodeops are only defined with NFSCLIENT, not NFSSERVER.
-rw-r--r-- | sys/uvm/uvm_swap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/uvm/uvm_swap.c b/sys/uvm/uvm_swap.c index dd7e70d321f..71974bc1870 100644 --- a/sys/uvm/uvm_swap.c +++ b/sys/uvm/uvm_swap.c @@ -944,9 +944,9 @@ swap_on(p, sdp) #ifdef SWAP_TO_FILES struct vattr va; #endif -#if defined(NFSSERVER) || defined(NFSCLIENT) +#if defined(NFSCLIENT) extern int (**nfsv2_vnodeop_p) __P((void *)); -#endif /* defined(NFSSERVER) || defined(NFSCLIENT) */ +#endif /* defined(NFSCLIENT) */ dev_t dev; char *name; UVMHIST_FUNC("swap_on"); UVMHIST_CALLED(pdhist); @@ -1007,11 +1007,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. */ -#if defined(NFSSERVER) || defined(NFSCLIENT) +#if defined(NFSCLIENT) if (vp->v_op == nfsv2_vnodeop_p) sdp->swd_maxactive = 2; /* XXX */ else -#endif /* defined(NFSSERVER) || defined(NFSCLIENT) */ +#endif /* defined(NFSCLIENT) */ sdp->swd_maxactive = 8; /* XXX */ break; #endif |