svn commit: r211161 - projects/suj/6/sys/ufs/ufs
Jeff Roberson
jeff at FreeBSD.org
Wed Aug 11 04:56:00 UTC 2010
Author: jeff
Date: Wed Aug 11 04:55:58 2010
New Revision: 211161
URL: http://svn.freebsd.org/changeset/base/211161
Log:
- Somehow my last commit omitted this change.
Reported by: Mark Saad
Modified:
projects/suj/6/sys/ufs/ufs/ufs_lookup.c
Modified: projects/suj/6/sys/ufs/ufs/ufs_lookup.c
==============================================================================
--- projects/suj/6/sys/ufs/ufs/ufs_lookup.c Wed Aug 11 03:08:03 2010 (r211160)
+++ projects/suj/6/sys/ufs/ufs/ufs_lookup.c Wed Aug 11 04:55:58 2010 (r211161)
@@ -591,7 +591,7 @@ found:
*/
pdp = vdp;
if (flags & ISDOTDOT) {
- saved_ino = dp->i_ino;
+ saved_ino = ino;
VOP_UNLOCK(pdp, 0, td); /* race to get the inode */
error = VFS_VGET(pdp->v_mount, saved_ino,
cnp->cn_lkflags, &tdp);
@@ -599,11 +599,11 @@ found:
if (error)
return (error);
*vpp = tdp;
- } else if (dp->i_number == dp->i_ino) {
+ } else if (dp->i_number == ino) {
VREF(vdp); /* we want ourself, ie "." */
*vpp = vdp;
} else {
- error = VFS_VGET(pdp->v_mount, dp->i_ino,
+ error = VFS_VGET(pdp->v_mount, ino,
cnp->cn_lkflags, &tdp);
if (error)
return (error);
More information about the svn-src-projects
mailing list