diff options
author | mjg <mjg@FreeBSD.org> | 2014-10-16 12:41:14 +0000 |
---|---|---|
committer | mjg <mjg@FreeBSD.org> | 2014-10-16 12:41:14 +0000 |
commit | cdeccc2a52da5b01d56faf640b8d9dcb278a80df (patch) | |
tree | bc55d6ea5307d7ea73841b61cebaa0525d4eba2f /sys/ufs | |
parent | 2ba95ccada9529b40d3748c9879c91f8321392ee (diff) | |
download | FreeBSD-src-cdeccc2a52da5b01d56faf640b8d9dcb278a80df.zip FreeBSD-src-cdeccc2a52da5b01d56faf640b8d9dcb278a80df.tar.gz |
Use lockless quota checks in qsync and qsyncvp.
No strong objections from: kib, mckusick
MFC after: 1 week
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ufs/ufs_quota.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/ufs/ufs/ufs_quota.c b/sys/ufs/ufs/ufs_quota.c index a6e139a..132fab2 100644 --- a/sys/ufs/ufs/ufs_quota.c +++ b/sys/ufs/ufs/ufs_quota.c @@ -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); /* |