=================================================================== RCS file: /cvs/prex-old/usr/server/fs/vfs/vfs_lookup.c,v retrieving revision 1.1.1.1 retrieving revision 1.1.1.1.2.1 diff -u -r1.1.1.1 -r1.1.1.1.2.1 --- prex-old/usr/server/fs/vfs/vfs_lookup.c 2008/06/03 10:38:51 1.1.1.1 +++ prex-old/usr/server/fs/vfs/vfs_lookup.c 2008/08/13 17:12:44 1.1.1.1.2.1 @@ -46,7 +46,7 @@ /* * Convert a pathname into a pointer to a locked vnode. * @path: full path name. - * @vpp: vnode to be returned. + * @vpp: vnode to be returned. */ int namei(char *path, vnode_t *vpp) @@ -58,7 +58,7 @@ vnode_t dvp, vp; int err, i; - vn_printf("namei: path=%s\n", path); + DPRINTF(VFSDB_VNODE, ("namei: path=%s\n", path)); /* * Convert a full path name to its mount point and @@ -71,13 +71,13 @@ vp = vn_lookup(mp, node); if (vp) { /* vnode is already active. */ - vref(vp); *vpp = vp; return 0; } /* - * Find target vnode, started from root directory. This is - * done to attach the fs specific data to the target vnode. + * Find target vnode, started from root directory. + * This is done to attach the fs specific data to + * the target vnode. */ if ((dvp = mp->m_root) == NULL) sys_panic("VFS: no root"); @@ -105,9 +105,7 @@ strlcat(node, "/", PATH_MAX); strlcat(node, name, PATH_MAX); vp = vn_lookup(mp, node); - if (vp) { - vref(vp); - } else { + if (vp == NULL) { vp = vget(mp, node); if (vp == NULL) { vput(dvp); @@ -149,7 +147,7 @@ vnode_t vp; int err; - vn_printf("lookup: path=%s\n", path); + DPRINTF(VFSDB_VNODE, ("lookup: path=%s\n", path)); /* * Get the path for directory.