struct vnode: assign v_rl.resv1 as v_vrflag

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:
This commit is contained in:
Konstantin Belousov
2026-04-26 05:31:50 +03:00
parent a770638ecf
commit d990e8f0e9
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -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;
+1
View File
@@ -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)