Use VOP_GETVOBJECT instead of accessing the member directly. This fixed

an issue with nullfs and NAMEI shared.

Submitted by:	Alexander Kabaev
This commit is contained in:
Jeff Roberson 2002-04-14 10:18:48 +00:00
parent 76dcc6cba9
commit 79a3e97054

View File

@ -216,7 +216,7 @@ vn_open_cred(ndp, flagp, cmode, cred)
#ifndef LOOKUP_EXCLUSIVE
int flock;
if (!exclusive && vp->v_object == NULL)
if (!exclusive && VOP_GETVOBJECT(vp, NULL) != 0)
VOP_LOCK(vp, LK_UPGRADE, td);
/*
* In cases where the object is marked as dead object_create