svn commit: r222196 - head/sys/ufs/ufs

Rick Macklem rmacklem at FreeBSD.org
Sun May 22 20:39:08 UTC 2011


Author: rmacklem
Date: Sun May 22 20:39:07 2011
New Revision: 222196
URL: http://svn.freebsd.org/changeset/base/222196

Log:
  Fix the ufs/ffs file system so that it uses the lock
  flags argument added to VFS_FHTOVP() by r222167.
  
  Reviewed by:	mckusick

Modified:
  head/sys/ufs/ufs/ufs_vfsops.c

Modified: head/sys/ufs/ufs/ufs_vfsops.c
==============================================================================
--- head/sys/ufs/ufs/ufs_vfsops.c	Sun May 22 20:29:47 2011	(r222195)
+++ head/sys/ufs/ufs/ufs_vfsops.c	Sun May 22 20:39:07 2011	(r222196)
@@ -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);


More information about the svn-src-head mailing list