svn commit: r273165 - head/sys/ufs/ufs
Mateusz Guzik
mjg at FreeBSD.org
Thu Oct 16 12:41:15 UTC 2014
Author: mjg
Date: Thu Oct 16 12:41:14 2014
New Revision: 273165
URL: https://svnweb.freebsd.org/changeset/base/273165
Log:
Use lockless quota checks in qsync and qsyncvp.
No strong objections from: kib, mckusick
MFC after: 1 week
Modified:
head/sys/ufs/ufs/ufs_quota.c
Modified: head/sys/ufs/ufs/ufs_quota.c
==============================================================================
--- head/sys/ufs/ufs/ufs_quota.c Thu Oct 16 09:09:43 2014 (r273164)
+++ head/sys/ufs/ufs/ufs_quota.c Thu Oct 16 12:41:14 2014 (r273165)
@@ -1035,11 +1035,9 @@ qsync(struct mount *mp)
* Check if the mount point has any quotas.
* If not, simply return.
*/
- UFS_LOCK(ump);
for (i = 0; i < MAXQUOTAS; i++)
if (ump->um_quotas[i] != NULLVP)
break;
- UFS_UNLOCK(ump);
if (i == MAXQUOTAS)
return (0);
/*
@@ -1084,11 +1082,9 @@ qsyncvp(struct vnode *vp)
* Check if the mount point has any quotas.
* If not, simply return.
*/
- UFS_LOCK(ump);
for (i = 0; i < MAXQUOTAS; i++)
if (ump->um_quotas[i] != NULLVP)
break;
- UFS_UNLOCK(ump);
if (i == MAXQUOTAS)
return (0);
/*
More information about the svn-src-head
mailing list