diff options
author | kan <kan@FreeBSD.org> | 2004-01-05 16:48:18 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2004-01-05 16:48:18 +0000 |
commit | eac181c2d9342d3a0c04c4c01ee07faa14563628 (patch) | |
tree | 090567d19bc5f919431fcc79c022c1b360551408 /sys | |
parent | 007605b9187cb852ffd9e2b660a880791ad06c92 (diff) | |
download | FreeBSD-src-eac181c2d9342d3a0c04c4c01ee07faa14563628.zip FreeBSD-src-eac181c2d9342d3a0c04c4c01ee07faa14563628.tar.gz |
Style fixes:
Remove double empty lines.
Add tab after #define's.
Properly terminate sentences in comments.
Obtained from: bde (mostly).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/vnode.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h index fadb2df..f28a62c 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. */ |