diff --git a/sys/sys/rangelock.h b/sys/sys/rangelock.h index 3169c251a49..00fe7eee851 100644 --- a/sys/sys/rangelock.h +++ b/sys/sys/rangelock.h @@ -46,6 +46,9 @@ struct rl_q_entry; * all existing lock owners are compatible with the request. Two lock * owners are compatible if their ranges do not overlap, or both * owners are for read. + * + * The resvX fields can be used by consumers. For instance, struct + * vnode uses resv1 as v_vrflag. */ struct rangelock { uintptr_t head; diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h index 3fd2c770cda..7dde7183414 100644 --- a/sys/sys/vnode.h +++ b/sys/sys/vnode.h @@ -203,6 +203,7 @@ struct vnode { (negative) text users */ int v_seqc_users; /* i modifications pending */ }; +#define v_vrflag v_rl.resv1 #define VN_ISDEV(vp) VTYPE_ISDEV((vp)->v_type)