From 73491c121c3ffa9b6b3fdbe5b1a9622fffb9ada2 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Thu, 18 Dec 2008 12:01:53 +0000 Subject: [PATCH] Do not busy twice the mount point where a quota operation is performed. Tested by: pho MFC after: 1 month --- sys/ufs/ufs/ufs_vfsops.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/ufs/ufs/ufs_vfsops.c b/sys/ufs/ufs/ufs_vfsops.c index 14ce4c6b033..ac1fbcf7107 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 }