diff options
| author | Boris Popov <bp@FreeBSD.org> | 2001-02-21 10:44:12 +0000 |
|---|---|---|
| committer | Boris Popov <bp@FreeBSD.org> | 2001-02-21 10:44:12 +0000 |
| commit | dfe53f1566ef6458d56c60889fe96ac9cdac692b (patch) | |
| tree | 313133efd3cc262f2269e72ae06197b1e8229288 | |
| parent | aad5feb0fb6ddd8b9e92cd494b96e394bc893539 (diff) | |
Notes
| -rw-r--r-- | sys/sys/vnode.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h index eb982f0eb78d4..b771a1aa03234 100644 --- a/sys/sys/vnode.h +++ b/sys/sys/vnode.h @@ -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 */ |
