Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 May 2026 19:59:09 +0000
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: d990e8f0e947 - main - struct vnode: assign v_rl.resv1 as v_vrflag
Message-ID:  <69f7a90d.3e5f9.3e50ef51@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=d990e8f0e9478194569ba28c366b0c0c0f414e7b

commit d990e8f0e9478194569ba28c366b0c0c0f414e7b
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-04-26 02:31:50 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-05-03 19:58:37 +0000

    struct vnode: assign v_rl.resv1 as v_vrflag
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:
---
 sys/sys/rangelock.h | 3 +++
 sys/sys/vnode.h     | 1 +
 2 files changed, 4 insertions(+)

diff --git a/sys/sys/rangelock.h b/sys/sys/rangelock.h
index 3169c251a495..00fe7eee851e 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 3fd2c770cda1..7dde71834143 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)
 


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69f7a90d.3e5f9.3e50ef51>