aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Libby <rlibby@FreeBSD.org>2026-05-10 04:25:12 +0000
committerRyan Libby <rlibby@FreeBSD.org>2026-05-10 04:25:12 +0000
commit58e5b4dbd9594f9553cfe9df68a19a294e245ed7 (patch)
tree40375d4ada39a4ee00bd57b094fd01028b1b528c
parent3ca8ec19b6ecc8ae4413d0505ce2d0efdd3e52c8 (diff)
vfs_subr: mark uma zone and smr pointers __read_mostly
Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D56892
-rw-r--r--sys/kern/vfs_subr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 823ccc6cab71..bba0f3575300 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -237,15 +237,15 @@ static struct mtx mntid_mtx;
*/
static struct mtx __exclusive_cache_line vnode_list_mtx;
-static uma_zone_t buf_trie_zone;
-static smr_t buf_trie_smr;
+static __read_mostly uma_zone_t buf_trie_zone;
+static __read_mostly smr_t buf_trie_smr;
/* Zone for allocation of new vnodes - used exclusively by getnewvnode() */
-static uma_zone_t vnode_zone;
-MALLOC_DEFINE(M_VNODEPOLL, "VN POLL", "vnode poll");
-
+static __read_mostly uma_zone_t vnode_zone;
__read_frequently smr_t vfs_smr;
+MALLOC_DEFINE(M_VNODEPOLL, "VN POLL", "vnode poll");
+
/*
* The workitem queue.
*