Module Name: src Committed By: ad Date: Wed Jan 8 21:55:10 UTC 2020
Modified Files: src/sys/kern [ad-namecache]: vfs_cache.c Log Message: Fix a comment. To generate a diff of this commit: cvs rdiff -u -r1.126.2.2 -r1.126.2.3 src/sys/kern/vfs_cache.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/vfs_cache.c diff -u src/sys/kern/vfs_cache.c:1.126.2.2 src/sys/kern/vfs_cache.c:1.126.2.3 --- src/sys/kern/vfs_cache.c:1.126.2.2 Wed Jan 8 11:44:30 2020 +++ src/sys/kern/vfs_cache.c Wed Jan 8 21:55:10 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: vfs_cache.c,v 1.126.2.2 2020/01/08 11:44:30 ad Exp $ */ +/* $NetBSD: vfs_cache.c,v 1.126.2.3 2020/01/08 21:55:10 ad Exp $ */ /*- * Copyright (c) 2008, 2019 The NetBSD Foundation, Inc. @@ -149,7 +149,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: vfs_cache.c,v 1.126.2.2 2020/01/08 11:44:30 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vfs_cache.c,v 1.126.2.3 2020/01/08 21:55:10 ad Exp $"); #define __NAMECACHE_PRIVATE #ifdef _KERNEL_OPT @@ -333,7 +333,7 @@ cache_lookup_entry(struct vnode *dvp, co KASSERT(ncp->nc_dvp == dvp); /* * Avoid false sharing: don't write back to nc_hittime - * unless it has changed within the last 32 ticks. + * unless changed significantly. */ if (((ncp->nc_hittime ^ hardclock_ticks) & ~31) != 0) { ncp->nc_hittime = hardclock_ticks;