svn commit: r187363 - in stable/7/sys: . contrib/pf dev/cxgb ufs/ufs

Konstantin Belousov kib at FreeBSD.org
Sat Jan 17 06:37:56 PST 2009


Author: kib
Date: Sat Jan 17 14:37:54 2009
New Revision: 187363
URL: http://svn.freebsd.org/changeset/base/187363

Log:
  MFC r186278:
  Do not busy twice the mount point where a quota operation is performed.

Modified:
  stable/7/sys/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)
  stable/7/sys/dev/cxgb/   (props changed)
  stable/7/sys/ufs/ufs/ufs_vfsops.c

Modified: stable/7/sys/ufs/ufs/ufs_vfsops.c
==============================================================================
--- stable/7/sys/ufs/ufs/ufs_vfsops.c	Sat Jan 17 14:31:41 2009	(r187362)
+++ stable/7/sys/ufs/ufs/ufs_vfsops.c	Sat Jan 17 14:37:54 2009	(r187363)
@@ -118,9 +118,6 @@ ufs_quotactl(mp, cmds, id, arg, td)
 	if ((u_int)type >= MAXQUOTAS)
 		return (EINVAL);
 
-	if (vfs_busy(mp, LK_NOWAIT, 0, td))
-		return (0);
-
 	switch (cmd) {
 	case Q_QUOTAON:
 		error = quotaon(td, mp, type, arg);
@@ -150,7 +147,6 @@ ufs_quotactl(mp, cmds, id, arg, td)
 		error = EINVAL;
 		break;
 	}
-	vfs_unbusy(mp, td);
 	return (error);
 #endif
 }


More information about the svn-src-stable mailing list