Do not busy twice the mount point where a quota operation is performed.

Tested by:	pho
MFC after:	1 month
This commit is contained in:
Konstantin Belousov 2008-12-18 12:01:53 +00:00
parent 548066ea66
commit 73491c121c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=186278

View file

@ -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
}