svn commit: r189979 - stable/7/sys/sys
John Baldwin
jhb at FreeBSD.org
Wed Mar 18 11:46:52 PDT 2009
Author: jhb
Date: Wed Mar 18 18:46:50 2009
New Revision: 189979
URL: http://svn.freebsd.org/changeset/base/189979
Log:
MFC: Add VN_LOCK_ASHARE() and VN_LOCK_AREC() macros to make it easier to
share code with HEAD.
Modified:
stable/7/sys/sys/vnode.h
Modified: stable/7/sys/sys/vnode.h
==============================================================================
--- stable/7/sys/sys/vnode.h Wed Mar 18 18:43:31 2009 (r189978)
+++ stable/7/sys/sys/vnode.h Wed Mar 18 18:46:50 2009 (r189979)
@@ -397,6 +397,9 @@ extern void (*lease_updatetime)(int delt
#define VI_UNLOCK(vp) mtx_unlock(&(vp)->v_interlock)
#define VI_MTX(vp) (&(vp)->v_interlock)
+#define VN_LOCK_AREC(vp) ((vp)->v_vnlock->lk_flags |= LK_CANRECURSE)
+#define VN_LOCK_ASHARE(vp) ((vp)->v_vnlock->lk_flags &= ~LK_NOSHARE)
+
#endif /* _KERNEL */
/*
More information about the svn-src-stable
mailing list