Date: Thu, 18 Dec 2008 12:01:53 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r186278 - head/sys/ufs/ufs Message-ID: <200812181201.mBIC1rq4039852@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812181201.mBIC1rq4039852>