Tweak for BSD44/NetBSD environ.
This commit is contained in:
parent
afc54bea1a
commit
fc69cb8898
@ -490,11 +490,11 @@ vnthrottle(vn, vp)
|
|||||||
#ifdef NFSCLIENT
|
#ifdef NFSCLIENT
|
||||||
#ifdef BSD44
|
#ifdef BSD44
|
||||||
extern int (**nfsv2_vnodeop_p)();
|
extern int (**nfsv2_vnodeop_p)();
|
||||||
|
if (vp->v_op == nfsv2_vnodeop_p)
|
||||||
#else
|
#else
|
||||||
extern struct vnodeops nfsv2_vnodeops;
|
extern struct vnodeops nfsv2_vnodeops;
|
||||||
struct vnodeops (**nfsv2_vnodeop_p)() = nfsv2_vnodeops;
|
if (vp->v_op == &nfsv2_vnodeops)
|
||||||
#endif
|
#endif
|
||||||
if (vp->v_op == nfsv2_vnodeop_p)
|
|
||||||
vn->sc_maxactive = 2;
|
vn->sc_maxactive = 2;
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
@ -490,11 +490,11 @@ vnthrottle(vn, vp)
|
|||||||
#ifdef NFSCLIENT
|
#ifdef NFSCLIENT
|
||||||
#ifdef BSD44
|
#ifdef BSD44
|
||||||
extern int (**nfsv2_vnodeop_p)();
|
extern int (**nfsv2_vnodeop_p)();
|
||||||
|
if (vp->v_op == nfsv2_vnodeop_p)
|
||||||
#else
|
#else
|
||||||
extern struct vnodeops nfsv2_vnodeops;
|
extern struct vnodeops nfsv2_vnodeops;
|
||||||
struct vnodeops (**nfsv2_vnodeop_p)() = nfsv2_vnodeops;
|
if (vp->v_op == &nfsv2_vnodeops)
|
||||||
#endif
|
#endif
|
||||||
if (vp->v_op == nfsv2_vnodeop_p)
|
|
||||||
vn->sc_maxactive = 2;
|
vn->sc_maxactive = 2;
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user