Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156425645
D56892.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
682 B
Referenced Files
None
Subscribers
None
D56892.diff
View Options
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -237,15 +237,15 @@
*/
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.
*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 14, 2:53 PM (7 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32830227
Default Alt Text
D56892.diff (682 B)
Attached To
Mode
D56892: vfs_subr: mark uma zone and smr pointers __read_mostly
Attached
Detach File
Event Timeline
Log In to Comment