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
 }
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to