Date: Wed, 18 Mar 2009 18:46:50 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r189979 - stable/7/sys/sys Message-ID: <200903181846.n2IIkoc6034614@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 */ /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903181846.n2IIkoc6034614>