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:
parent
16614d3518
commit
f923be6b9a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user