Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Sep 2019 15:57:23 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r352012 - head/sys/ufs/ufs
Message-ID:  <201909071557.x87FvNfq098703@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909071557.x87FvNfq098703>