Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/ad-namecache]: src/sys/kern Fix namecache_print().
details: https://anonhg.NetBSD.org/src/rev/69b3c7c084bf
branches: ad-namecache
changeset: 982992:69b3c7c084bf
user: ad <ad%NetBSD.org@localhost>
date: Sat Jan 18 17:16:20 2020 +0000
description:
Fix namecache_print().
diffstat:
sys/kern/vfs_cache.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r a7f3f69d4a07 -r 69b3c7c084bf sys/kern/vfs_cache.c
--- a/sys/kern/vfs_cache.c Sat Jan 18 17:14:13 2020 +0000
+++ b/sys/kern/vfs_cache.c Sat Jan 18 17:16:20 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_cache.c,v 1.126.2.7 2020/01/18 15:42:02 ad Exp $ */
+/* $NetBSD: vfs_cache.c,v 1.126.2.8 2020/01/18 17:16:20 ad Exp $ */
/*-
* Copyright (c) 2008, 2019, 2020 The NetBSD Foundation, Inc.
@@ -148,7 +148,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_cache.c,v 1.126.2.7 2020/01/18 15:42:02 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_cache.c,v 1.126.2.8 2020/01/18 17:16:20 ad Exp $");
#define __NAMECACHE_PRIVATE
#ifdef _KERNEL_OPT
@@ -1388,7 +1388,6 @@
void
namecache_print(struct vnode *vp, void (*pr)(const char *, ...))
{
- struct vnode *dvp = NULL;
struct namecache *nc;
struct nchnode *dnn;
enum cache_lru_id id;
@@ -1402,7 +1401,7 @@
}
}
}
- if (dvp == NULL) {
+ if (dnn == NULL) {
(*pr)("name not found\n");
return;
}
Home |
Main Index |
Thread Index |
Old Index