Module Name:    src
Committed By:   rmind
Date:           Sun May 29 22:43:32 UTC 2011

Modified Files:
        src/sys/fs/tmpfs: tmpfs_subr.c

Log Message:
Fix non-DEBUG build.


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/sys/fs/tmpfs/tmpfs_subr.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/fs/tmpfs/tmpfs_subr.c
diff -u src/sys/fs/tmpfs/tmpfs_subr.c:1.71 src/sys/fs/tmpfs/tmpfs_subr.c:1.72
--- src/sys/fs/tmpfs/tmpfs_subr.c:1.71	Sun May 29 22:29:06 2011
+++ src/sys/fs/tmpfs/tmpfs_subr.c	Sun May 29 22:43:32 2011
@@ -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. */

Reply via email to