Author: kib Date: Sat Sep 7 15:57:23 2019 New Revision: 352012 URL: https://svnweb.freebsd.org/changeset/base/352012
Log: Properly check for writers when fetching quotas for writeable vnodes in UFS quotaon(). Reviewed by: markj MFC after: 1 week Differential revision: https://reviews.freebsd.org/D21560 Modified: head/sys/ufs/ufs/ufs_quota.c Modified: head/sys/ufs/ufs/ufs_quota.c ============================================================================== --- head/sys/ufs/ufs/ufs_quota.c Sat Sep 7 15:56:00 2019 (r352011) +++ head/sys/ufs/ufs/ufs_quota.c Sat Sep 7 15:57:23 2019 (r352012) @@ -617,7 +617,7 @@ again: MNT_VNODE_FOREACH_ALL_ABORT(mp, mvp); goto again; } - if (vp->v_type == VNON || vp->v_writecount == 0) { + if (vp->v_type == VNON || vp->v_writecount <= 0) { VOP_UNLOCK(vp, 0); vrele(vp); continue; _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "[email protected]"
