summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2008-12-18 12:01:53 +0000
committerkib <kib@FreeBSD.org>2008-12-18 12:01:53 +0000
commit068931a9897e3bea2e9c192f392fe5548cbed6ce (patch)
treeda2b73d98207c1dd7d84e474a339d06f6ff6b9f9 /sys/ufs
parent5b3918fe075f9cb971c03bd21b43f199996e2085 (diff)
downloadFreeBSD-src-068931a9897e3bea2e9c192f392fe5548cbed6ce.zip
FreeBSD-src-068931a9897e3bea2e9c192f392fe5548cbed6ce.tar.gz
Do not busy twice the mount point where a quota operation is performed.
Tested by: pho MFC after: 1 month
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ufs/ufs_vfsops.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/ufs/ufs/ufs_vfsops.c b/sys/ufs/ufs/ufs_vfsops.c
index 14ce4c6..ac1fbcf 100644
--- a/sys/ufs/ufs/ufs_vfsops.c
+++ b/sys/ufs/ufs/ufs_vfsops.c
@@ -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
}
OpenPOWER on IntegriCloud