Fix the ufs/ffs file system so that it uses the lock

flags argument added to VFS_FHTOVP() by r222167.

Reviewed by:	mckusick
This commit is contained in:
Rick Macklem 2011-05-22 20:39:07 +00:00
parent df73c41ac2
commit dbed8d1fc8

View File

@ -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);