Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/ad-namecache]: src/sys/kern __read_mostly -> const in one place



details:   https://anonhg.NetBSD.org/src/rev/fa05fbfa2c6f
branches:  ad-namecache
changeset: 850563:fa05fbfa2c6f
user:      ad <ad%NetBSD.org@localhost>
date:      Tue Mar 10 21:53:45 2020 +0000

description:
__read_mostly -> const in one place

diffstat:

 sys/kern/vfs_cache.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3e9c6afb434c -r fa05fbfa2c6f sys/kern/vfs_cache.c
--- a/sys/kern/vfs_cache.c      Wed Mar 04 20:26:28 2020 +0000
+++ b/sys/kern/vfs_cache.c      Tue Mar 10 21:53:45 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_cache.c,v 1.126.2.12 2020/02/16 22:00:53 ad Exp $  */
+/*     $NetBSD: vfs_cache.c,v 1.126.2.13 2020/03/10 21:53:45 ad Exp $  */
 
 /*-
  * Copyright (c) 2008, 2019, 2020 The NetBSD Foundation, Inc.
@@ -171,7 +171,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_cache.c,v 1.126.2.12 2020/02/16 22:00:53 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_cache.c,v 1.126.2.13 2020/03/10 21:53:45 ad Exp $");
 
 #define __NAMECACHE_PRIVATE
 #ifdef _KERNEL_OPT
@@ -242,7 +242,7 @@
 static struct  sysctllog *cache_sysctllog;
 
 /* Read-black tree */
-static rb_tree_ops_t cache_rbtree_ops __read_mostly = {
+static const rb_tree_ops_t cache_rbtree_ops = {
        .rbto_compare_nodes = cache_compare_nodes,
        .rbto_compare_key = cache_compare_key,
        .rbto_node_offset = offsetof(struct namecache, nc_tree),



Home | Main Index | Thread Index | Old Index