svn commit: r352321 - stable/12/sys/ufs/ufs

Konstantin Belousov kib at FreeBSD.org
Sat Sep 14 13:25:55 UTC 2019


Author: kib
Date: Sat Sep 14 13:25:54 2019
New Revision: 352321
URL: https://svnweb.freebsd.org/changeset/base/352321

Log:
  MFC r352012:
  Properly check for writers when fetching quotas for writeable vnodes
  in UFS quotaon().

Modified:
  stable/12/sys/ufs/ufs/ufs_quota.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/ufs/ufs/ufs_quota.c
==============================================================================
--- stable/12/sys/ufs/ufs/ufs_quota.c	Sat Sep 14 12:40:46 2019	(r352320)
+++ stable/12/sys/ufs/ufs/ufs_quota.c	Sat Sep 14 13:25:54 2019	(r352321)
@@ -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;


More information about the svn-src-stable-12 mailing list