Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/tmpfs Fix non-DEBUG build.
details: https://anonhg.NetBSD.org/src/rev/71c0fa619e72
branches: trunk
changeset: 765533:71c0fa619e72
user: rmind <rmind%NetBSD.org@localhost>
date: Sun May 29 22:43:32 2011 +0000
description:
Fix non-DEBUG build.
diffstat:
sys/fs/tmpfs/tmpfs_subr.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (31 lines):
diff -r 6718bfcf4de0 -r 71c0fa619e72 sys/fs/tmpfs/tmpfs_subr.c
--- a/sys/fs/tmpfs/tmpfs_subr.c Sun May 29 22:29:06 2011 +0000
+++ b/sys/fs/tmpfs/tmpfs_subr.c Sun May 29 22:43:32 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tmpfs_subr.c,v 1.71 2011/05/29 22:29:06 rmind Exp $ */
+/* $NetBSD: tmpfs_subr.c,v 1.72 2011/05/29 22:43:32 rmind Exp $ */
/*
* Copyright (c) 2005-2011 The NetBSD Foundation, Inc.
@@ -74,7 +74,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tmpfs_subr.c,v 1.71 2011/05/29 22:29:06 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tmpfs_subr.c,v 1.72 2011/05/29 22:43:32 rmind Exp $");
#include <sys/param.h>
#include <sys/dirent.h>
@@ -492,9 +492,9 @@
KASSERT(node->tn_links > 0);
node->tn_links--;
- if (node->tn_vnode) {
- VN_KNOTE(node->tn_vnode,
- node->tn_links ? NOTE_LINK : NOTE_DELETE);
+ if (vp) {
+ VN_KNOTE(vp, node->tn_links ?
+ NOTE_LINK : NOTE_DELETE);
}
/* If directory - decrease the link count of parent. */
Home |
Main Index |
Thread Index |
Old Index