Add VI_LOCK(), VI_TRYLOCK() and VI_UNLOCK() macros to isolate implementation

details of v_interlock.

Reviewed by:	jhb, phk, arch@
This commit is contained in:
Boris Popov 2001-02-21 10:44:12 +00:00
parent aad5feb0fb
commit dfe53f1566

View File

@ -308,6 +308,10 @@ extern void (*lease_updatetime) __P((int deltat));
(((vp)->v_flag & VFREE) && \
((vp)->v_holdcnt || (vp)->v_usecount))
#define VI_LOCK(vp) mtx_lock(&(vp)->v_interlock)
#define VI_TRYLOCK(vp) mtx_trylock(&(vp)->v_interlock)
#define VI_UNLOCK(vp) mtx_unlock(&(vp)->v_interlock)
#endif /* _KERNEL */