Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Cosmetic changes



details:   https://anonhg.NetBSD.org/src/rev/ac456538469e
branches:  trunk
changeset: 970995:ac456538469e
user:      ad <ad%NetBSD.org@localhost>
date:      Fri Apr 10 16:55:40 2020 +0000

description:
Cosmetic changes

diffstat:

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

diffs (40 lines):

diff -r 345b34815910 -r ac456538469e sys/kern/vfs_cache.c
--- a/sys/kern/vfs_cache.c      Fri Apr 10 14:54:33 2020 +0000
+++ b/sys/kern/vfs_cache.c      Fri Apr 10 16:55:40 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_cache.c,v 1.137 2020/04/04 20:49:30 ad Exp $       */
+/*     $NetBSD: vfs_cache.c,v 1.138 2020/04/10 16:55:40 ad Exp $       */
 
 /*-
  * Copyright (c) 2008, 2019, 2020 The NetBSD Foundation, Inc.
@@ -172,7 +172,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_cache.c,v 1.137 2020/04/04 20:49:30 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_cache.c,v 1.138 2020/04/10 16:55:40 ad Exp $");
 
 #define __NAMECACHE_PRIVATE
 #ifdef _KERNEL_OPT
@@ -241,7 +241,7 @@
 static callout_t cache_stat_callout;
 static kmutex_t cache_stat_lock __cacheline_aligned;
 
-#define        COUNT(f)        do { \
+#define        COUNT(f) do { \
        lwp_t *l = curlwp; \
        KPREEMPT_DISABLE(l); \
        ((struct nchstats_percpu *)curcpu()->ci_data.cpu_nch)->f++; \
@@ -417,10 +417,10 @@
                if (__predict_false(RB_SENTINEL_P(node))) {
                        return NULL;
                }
+               ncp = (struct namecache *)node;
                KASSERT((void *)&ncp->nc_tree == (void *)ncp);
-               ncp = (struct namecache *)node;
                KASSERT(ncp->nc_dvp == dvp);
-               if (__predict_false(ncp->nc_key == key)) {
+               if (ncp->nc_key == key) {
                        KASSERT(ncp->nc_nlen == namelen);
                        diff = memcmp(ncp->nc_name, name, namelen);
                        if (__predict_true(diff == 0)) {



Home | Main Index | Thread Index | Old Index