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
This commit is contained in:
Konstantin Belousov 2019-09-07 15:57:23 +00:00
parent 16614d3518
commit f923be6b9a

View File

@ -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;