aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/vnode.h
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-08-02 20:00:43 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-08-02 20:00:43 +0000
commitb145e389342e51220525bb8fa63e60a48f91011b (patch)
treeecf0978628b131867b02094614525aab9c492997 /sys/sys/vnode.h
parent838984de32be2b16354523d62e33a751ad2c519d (diff)
downloadsrc-b145e389342e51220525bb8fa63e60a48f91011b.tar.gz
src-b145e389342e51220525bb8fa63e60a48f91011b.zip
vfs: shorten v_iflag and v_vflag
While here renumber VI_* flags to remove the gaps. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D25921
Notes
Notes: svn path=/head/; revision=363781
Diffstat (limited to 'sys/sys/vnode.h')
-rw-r--r--sys/sys/vnode.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index 983e4ac3a531..bed5c0f4086f 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -107,6 +107,7 @@ struct vnode {
enum vtype v_type:8; /* u vnode type */
short v_irflag; /* i frequently read flags */
seqc_t v_seqc; /* i modification count */
+ uint32_t v_nchash; /* u namecache hash */
struct vop_vector *v_op; /* u vnode operations vector */
void *v_data; /* u private data for fs */
@@ -171,8 +172,8 @@ struct vnode {
u_int v_holdcnt; /* I prevents recycling. */
u_int v_usecount; /* I ref count of users */
- u_int v_iflag; /* i vnode flags (see below) */
- u_int v_vflag; /* v vnode flags */
+ u_short v_iflag; /* i vnode flags (see below) */
+ u_short v_vflag; /* v vnode flags */
u_short v_mflag; /* l mnt-specific vnode flags */
short v_dbatchcpu; /* i LRU requeue deferral batch */
int v_writecount; /* I ref count of writers or
@@ -245,10 +246,10 @@ struct xvnode {
#define VIRF_DOOMED 0x0001 /* This vnode is being recycled */
#define VI_TEXT_REF 0x0001 /* Text ref grabbed use ref */
-#define VI_MOUNT 0x0020 /* Mount in progress */
-#define VI_DOINGINACT 0x0800 /* VOP_INACTIVE is in progress */
-#define VI_OWEINACT 0x1000 /* Need to call inactive */
-#define VI_DEFINACT 0x2000 /* deferred inactive */
+#define VI_MOUNT 0x0002 /* Mount in progress */
+#define VI_DOINGINACT 0x0004 /* VOP_INACTIVE is in progress */
+#define VI_OWEINACT 0x0008 /* Need to call inactive */
+#define VI_DEFINACT 0x0010 /* deferred inactive */
#define VV_ROOT 0x0001 /* root of its filesystem */
#define VV_ISTTY 0x0002 /* vnode represents a tty */