MFC
This commit is contained in:
commit
b97e49c0e1
@ -2069,7 +2069,7 @@ zfs_fhtovp(vfs_t *vfsp, fid_t *fidp, int flags, vnode_t **vpp)
|
||||
VN_HOLD(*vpp);
|
||||
}
|
||||
ZFS_EXIT(zfsvfs);
|
||||
err = zfs_vnode_lock(*vpp, LK_EXCLUSIVE | LK_RETRY);
|
||||
err = zfs_vnode_lock(*vpp, flags | LK_RETRY);
|
||||
if (err != 0)
|
||||
*vpp = NULL;
|
||||
return (err);
|
||||
@ -2096,7 +2096,7 @@ zfs_fhtovp(vfs_t *vfsp, fid_t *fidp, int flags, vnode_t **vpp)
|
||||
|
||||
*vpp = ZTOV(zp);
|
||||
ZFS_EXIT(zfsvfs);
|
||||
err = zfs_vnode_lock(*vpp, LK_EXCLUSIVE | LK_RETRY);
|
||||
err = zfs_vnode_lock(*vpp, flags | LK_RETRY);
|
||||
if (err == 0)
|
||||
vnode_create_vobject(*vpp, zp->z_size, curthread);
|
||||
else
|
||||
|
@ -218,7 +218,7 @@ ufs_fhtovp(mp, ufhp, flags, vpp)
|
||||
struct vnode *nvp;
|
||||
int error;
|
||||
|
||||
error = VFS_VGET(mp, ufhp->ufid_ino, LK_EXCLUSIVE, &nvp);
|
||||
error = VFS_VGET(mp, ufhp->ufid_ino, flags, &nvp);
|
||||
if (error) {
|
||||
*vpp = NULLVP;
|
||||
return (error);
|
||||
|
Loading…
x
Reference in New Issue
Block a user