From owner-dev-commits-src-all@freebsd.org Tue May 18 15:30:32 2021 Return-Path: Delivered-To: dev-commits-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C7FE264FEAC; Tue, 18 May 2021 15:30:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fl0Lw5JMzz4mnT; Tue, 18 May 2021 15:30:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9EA9021E8F; Tue, 18 May 2021 15:30:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 14IFUW1v011746; Tue, 18 May 2021 15:30:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 14IFUWN6011745; Tue, 18 May 2021 15:30:32 GMT (envelope-from git) Date: Tue, 18 May 2021 15:30:32 GMT Message-Id: <202105181530.14IFUWN6011745@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: 715fcc0d3426 - main - vfs: change vn_freevnodes_* prefix to idiomatic vfs_freevnodes_* MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 715fcc0d342684da5d109a7e4891d30aa38667c9 Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 May 2021 15:30:32 -0000 The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=715fcc0d342684da5d109a7e4891d30aa38667c9 commit 715fcc0d342684da5d109a7e4891d30aa38667c9 Author: Mateusz Guzik AuthorDate: 2021-05-14 19:01:56 +0000 Commit: Mateusz Guzik CommitDate: 2021-05-18 15:30:28 +0000 vfs: change vn_freevnodes_* prefix to idiomatic vfs_freevnodes_* --- sys/kern/vfs_subr.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 468bd21dae21..875925ac9a58 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1426,7 +1426,7 @@ static int vnlruproc_sig; #define VNLRU_FREEVNODES_SLOP 128 static __inline void -vn_freevnodes_inc(void) +vfs_freevnodes_inc(void) { struct vdbatch *vd; @@ -1437,7 +1437,7 @@ vn_freevnodes_inc(void) } static __inline void -vn_freevnodes_dec(void) +vfs_freevnodes_dec(void) { struct vdbatch *vd; @@ -3369,7 +3369,7 @@ vhold(struct vnode *vp) VNASSERT(old >= 0 && (old & VHOLD_ALL_FLAGS) == 0, vp, ("%s: wrong hold count %d", __func__, old)); if (old == 0) - vn_freevnodes_dec(); + vfs_freevnodes_dec(); } void @@ -3422,7 +3422,7 @@ vhold_smr(struct vnode *vp) VNASSERT(count >= 0, vp, ("invalid hold count %d\n", count)); if (atomic_fcmpset_int(&vp->v_holdcnt, &count, count + 1)) { if (count == 0) - vn_freevnodes_dec(); + vfs_freevnodes_dec(); return (true); } } @@ -3463,7 +3463,7 @@ vhold_recycle_free(struct vnode *vp) return (false); } if (atomic_fcmpset_int(&vp->v_holdcnt, &count, count + 1)) { - vn_freevnodes_dec(); + vfs_freevnodes_dec(); return (true); } } @@ -3624,7 +3624,7 @@ vdropl_final(struct vnode *vp) * we never got this far, they will vdrop later. */ if (__predict_false(!atomic_cmpset_int(&vp->v_holdcnt, 0, VHOLD_NO_SMR))) { - vn_freevnodes_inc(); + vfs_freevnodes_inc(); VI_UNLOCK(vp); /* * We lost the aforementioned race. Any subsequent access is @@ -3661,7 +3661,7 @@ vdropl(struct vnode *vp) return; } if (!VN_IS_DOOMED(vp)) { - vn_freevnodes_inc(); + vfs_freevnodes_inc(); vdrop_deactivate(vp); /* * Also unlocks the interlock. We can't assert on it as we