Date: Sat, 14 Sep 2019 13:25:55 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r352321 - stable/12/sys/ufs/ufs Message-ID: <201909141325.x8EDPtOZ033583@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909141325.x8EDPtOZ033583>