summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kabaev <kan@FreeBSD.org>2004-01-05 16:48:18 +0000
committerAlexander Kabaev <kan@FreeBSD.org>2004-01-05 16:48:18 +0000
commit89144d1a8b732029c2ba7648b770e39956cdb270 (patch)
tree090567d19bc5f919431fcc79c022c1b360551408
parent5b50d9ade73c0b652bfd3ee30047f6e0f6a62be0 (diff)
Notes
-rw-r--r--sys/sys/vnode.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index fadb2df84785..f28a62c1b2a3 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -351,7 +351,6 @@ extern int vttoif_tab[];
#define VREF(vp) vref(vp)
-
#ifdef DIAGNOSTIC
#define VATTR_NULL(vap) vattr_null(vap)
#else
@@ -380,22 +379,21 @@ extern struct vattr va_null; /* predefined null vattr structure */
#define LEASE_READ 0x1 /* Check lease for readers */
#define LEASE_WRITE 0x2 /* Check lease for modifiers */
-
extern void (*lease_updatetime)(int deltat);
-/* Requires interlock */
+/* Requires interlock. */
#define VSHOULDFREE(vp) \
(!((vp)->v_iflag & (VI_FREE|VI_DOOMED|VI_DOINGINACT)) && \
!(vp)->v_holdcnt && !(vp)->v_usecount && \
(!(vp)->v_object || \
!((vp)->v_object->ref_count || (vp)->v_object->resident_page_count)))
-/* Requires interlock */
-#define VMIGHTFREE(vp) \
+/* Requires interlock. */
+#define VMIGHTFREE(vp) \
(!((vp)->v_iflag & (VI_FREE|VI_DOOMED|VI_XLOCK|VI_DOINGINACT)) && \
LIST_EMPTY(&(vp)->v_cache_src) && !(vp)->v_usecount)
-/* Requires interlock */
+/* Requires interlock. */
#define VSHOULDBUSY(vp) \
(((vp)->v_iflag & VI_FREE) && \
((vp)->v_holdcnt || (vp)->v_usecount))
@@ -407,7 +405,6 @@ extern void (*lease_updatetime)(int deltat);
#endif /* _KERNEL */
-
/*
* Mods for extensibility.
*/