STABLE14-cached-lookup-mtpt-20060120

FIXES 25647

don't do lookups on the wrong vnode, if it's a mvstat=1 vnode, it's not useful


(cherry picked from commit a784c131709a8252fa1e8cb4ce49cb0c655dd7aa)
This commit is contained in:
Chaskiel M Grundman 2006-01-20 05:21:02 +00:00 committed by Derrick Brashear
parent ef9d3c9292
commit 4618020dbc

View File

@ -299,11 +299,14 @@ afs_vop_lookup(ap)
int wantparent; /* 1 => wantparent or lockparent flag */
struct proc *p;
#ifdef AFS_DARWIN80_ENV
error = cache_lookup(ap->a_dvp, ap->a_vpp, ap->a_cnp);
if (error == -1)
return 0;
if (error == ENOENT)
return error;
vcp = VTOAFS(ap->a_dvp);
if (vcp->mvstat != 1) {
error = cache_lookup(ap->a_dvp, ap->a_vpp, ap->a_cnp);
if (error == -1)
return 0;
if (error == ENOENT)
return error;
}
#endif
GETNAME();