git: db5f85a4b268 - main - ufs: stop using the V_MNTREF flag

From: Mateusz Guzik <mjg_at_FreeBSD.org>
Date: Wed, 14 Sep 2022 18:16:56 UTC
The branch main has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=db5f85a4b268d3e02fcecd0a21d1314a2cc28105

commit db5f85a4b268d3e02fcecd0a21d1314a2cc28105
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2022-09-10 20:11:42 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2022-09-14 18:16:07 +0000

    ufs: stop using the V_MNTREF flag
    
    Reviewed by:    kib, mckusick
    Differential Revision:  https://reviews.freebsd.org/D36521
---
 sys/ufs/ufs/ufs_vfsops.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/ufs/ufs/ufs_vfsops.c b/sys/ufs/ufs/ufs_vfsops.c
index bd2e6397749b..fa4a193e45a2 100644
--- a/sys/ufs/ufs/ufs_vfsops.c
+++ b/sys/ufs/ufs/ufs_vfsops.c
@@ -121,11 +121,12 @@ ufs_quotactl(struct mount *mp, int cmds, uid_t id, void *arg, bool *mp_busy)
 		vfs_ref(mp);
 		KASSERT(*mp_busy,
 		    ("%s called without busied mount", __func__));
-		vn_start_write(NULL, &mp, V_WAIT | V_MNTREF);
+		vn_start_write(NULL, &mp, V_WAIT);
 		vfs_unbusy(mp);
 		*mp_busy = false;
 		error = quotaoff(td, mp, type);
 		vn_finished_write(mp);
+		vfs_rel(mp);
 		break;
 
 	case Q_SETQUOTA32: