svn commit: r186278 - head/sys/ufs/ufs
Konstantin Belousov
kib at FreeBSD.org
Thu Dec 18 12:01:54 UTC 2008
Author: kib
Date: Thu Dec 18 12:01:53 2008
New Revision: 186278
URL: http://svn.freebsd.org/changeset/base/186278
Log:
Do not busy twice the mount point where a quota operation is performed.
Tested by: pho
MFC after: 1 month
Modified:
head/sys/ufs/ufs/ufs_vfsops.c
Modified: head/sys/ufs/ufs/ufs_vfsops.c
==============================================================================
--- head/sys/ufs/ufs/ufs_vfsops.c Thu Dec 18 12:01:19 2008 (r186277)
+++ head/sys/ufs/ufs/ufs_vfsops.c Thu Dec 18 12:01:53 2008 (r186278)
@@ -118,9 +118,6 @@ ufs_quotactl(mp, cmds, id, arg, td)
if ((u_int)type >= MAXQUOTAS)
return (EINVAL);
- if (vfs_busy(mp, MBF_NOWAIT))
- 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);
return (error);
#endif
}
More information about the svn-src-head
mailing list