]> Zhao Yanbai Git Server - minix.git/commitdiff
put put_vnode() back where it belongs!
authorBen Gras <ben@minix3.org>
Tue, 16 Dec 2008 16:11:24 +0000 (16:11 +0000)
committerBen Gras <ben@minix3.org>
Tue, 16 Dec 2008 16:11:24 +0000 (16:11 +0000)
servers/vfs/open.c
servers/vfs/vnode.h

index 126b7751344499c2b3616cdb59d5fb85cf96e38f..4050f89a3751ed6c096e739c0c496915c1f47ca0 100644 (file)
@@ -334,8 +334,8 @@ int *created;
 #if 0
                        printf(
                "vfs:create_open: creating existing file with O_EXCL\n");
-                       put_vnode(dir_vp);
 #endif
+                       put_vnode(dir_vp);
                        return r;
                }
 
index b53dd5ae536234e07735779aea0bd60a59fb1a39..dddd98480fac638b74380376239cbb7c75d60289 100644 (file)
@@ -39,3 +39,4 @@ EXTERN struct vnode {
 #define ISEEK              1   /* i_seek = ISEEK if last op was SEEK */
 
 
+#define SANITYCHECK do { if(!check_vrefs()) { printf("VFS:%s:%d: vref check failed\n", __FILE__, __LINE__); util_stacktrace(); } } while(0)