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:
parent
aad5feb0fb
commit
dfe53f1566
@ -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 */
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user