diff options
author | Jeff Roberson <jeff@FreeBSD.org> | 2002-04-14 10:18:48 +0000 |
---|---|---|
committer | Jeff Roberson <jeff@FreeBSD.org> | 2002-04-14 10:18:48 +0000 |
commit | 79a3e97054d746540ef96b4f09366b72e8c0639b (patch) | |
tree | add06e997f456b8effeabcfce5d8c2d6d5ac8ff1 /sys/kern | |
parent | 76dcc6cba94d3b70bafeff56194f36f3975eba29 (diff) | |
download | src-79a3e97054d746540ef96b4f09366b72e8c0639b.tar.gz src-79a3e97054d746540ef96b4f09366b72e8c0639b.zip |
Use VOP_GETVOBJECT instead of accessing the member directly. This fixed
an issue with nullfs and NAMEI shared.
Submitted by: Alexander Kabaev
Notes
Notes:
svn path=/head/; revision=94646
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_vnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index 3187a47641fe..f286960ee97f 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -216,7 +216,7 @@ restart: #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 |