]> Zhao Yanbai Git Server - minix.git/commitdiff
Fix typo and a bug causing vnode references to become too low.
authorThomas Veerman <thomas@minix3.org>
Mon, 21 Dec 2009 09:36:34 +0000 (09:36 +0000)
committerThomas Veerman <thomas@minix3.org>
Mon, 21 Dec 2009 09:36:34 +0000 (09:36 +0000)
servers/vfs/stadir.c
servers/vfs/vnode.c

index 448637ef6e8c8148a8d65b641bc407de73cdb2c6..8715f033cf5b59fc25eac7e68730353216bd750d 100644 (file)
@@ -37,6 +37,7 @@ PUBLIC int do_fchdir()
 
   /* Is the file descriptor valid? */
   if ((rfilp = get_filp(m_in.fd)) == NIL_FILP) return(err_code);
+  dup_vnode(rfilp->filp_vno);  /* Change into expects a reference. */
   return change_into(&fp->fp_wd, rfilp->filp_vno);
 }
 
index 5a7e4084a7900d564e53ac6b239db525948621ff..8a8278e42101ff4d407d673b0c5ae7189b8b67db 100644 (file)
@@ -136,7 +136,7 @@ PUBLIC void put_vnode(struct vnode *vp)
   vp->v_sdev = NO_DEV;
   vp->v_mapfs_e = 0;
   vp->v_mapinode_nr = 0;
-  vp->v_fs_count = 0;
+  vp->v_mapfs_count = 0;
 }