From nobody Fri Jan 05 05:00:49 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T5rrL1V0Zz56HX9; Fri, 5 Jan 2024 05:00:50 +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 4T5rrK6tgXz4Wsm; Fri, 5 Jan 2024 05:00:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704430850; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Jc8qEX3AMfEKWsjqtxbIHy5fVBKIxYQwzlRM32FGA/Q=; b=h+GDKAXWzreiB7gMy3d8I+alKE6P7e1S6ErU6IyvuhyFbShXaMJDKCXvrBFLP8z4zJsal/ I1orgZn/qLSb0k48zHDvq91k0DxXMluX9l5foZLQzY63Q0o2OtS6SgvLkEc+DMO9XsRlkw zQJaayQP/vnfB1F2EojoHjAELpGVhfuPtpv0/nJrh87nIbJioZKv0MZBZAOY8AyAFdu8Sl taaq2AS5eEJb/JBvKQTW/65IEwPr/QD6xb8ipJPZ4q7jnRCrzqfYsiycX+RDBUc72N5Asw Vr3unmozFh4zi8w7erCVoZS8esz21lM7HkmaESOPsQLaUpElrwETC35VEt2SyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704430850; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Jc8qEX3AMfEKWsjqtxbIHy5fVBKIxYQwzlRM32FGA/Q=; b=cJs81PnY2lvTEjk6BHBgrFtUP9tYEH500ssA+1EukKjL/6l//OAdLVMXfn90lORAZo3NDb q1KwqzT3ix+5IjDpaI1Bn87n4aP+0P4e3j3uZ1QIuOot4s/v+z+VRq6dP1guLeLq0JQs8E mbCG8EHD272DFhiRoz2DDtiflI3CTxDm8oTi50UD/eOts+cz6Jadmw60t50Nr3ypwzKFnh 66eqM1LCHLvcOhaCqdEmQxPdoQrM3aNm8+6j6jBec5owbgCL3cx9AERXNTyry18dtgIEyU mBkQT8F7N59cPm/+791AHGL9+ZZIiVf4HO5nxUk0cex6pNnWpNXxT3vL8iq7/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704430850; a=rsa-sha256; cv=none; b=cl55Fw1+JDiY/0jPoimRd/JfxX/7aTr2BdibP6/WczS800p5kI92UxXAKIV8UydqF/vqTa ret86Ut++Flj2ZKn3w4K/XxGN4F0R0K26K5K2sLHDm0YkdZ0pshncGHYCKGkInAc00EsaI PI+zRnke4FQkkeX3/LH65sklWQM3zKMpeUsKvWsUvRkC86GfDVHgdz+kSw/kkXG53VzuU4 qNlrpPS5ForfB6/6j7+AMTly9Axk1gYvBhmQhP/C2b+26lujj/h6ty5Hem1HDeYWG+inyP 17TR51+98da7zadiLX/XeVxx0QuNNwDha5raO3JoCe8KXNzhdzrpMReQMC05Ew== 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 4T5rrK5pf0zjmG; Fri, 5 Jan 2024 05:00:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40550nnO090292; Fri, 5 Jan 2024 05:00:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40550nHe090289; Fri, 5 Jan 2024 05:00:49 GMT (envelope-from git) Date: Fri, 5 Jan 2024 05:00:49 GMT Message-Id: <202401050500.40550nHe090289@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 4c41d10f1538 - main - vtruncbuf: add a comment explaining the purpose of the loop List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4c41d10f1538c232174d5200d245e5fcd9936958 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=4c41d10f1538c232174d5200d245e5fcd9936958 commit 4c41d10f1538c232174d5200d245e5fcd9936958 Author: Konstantin Belousov AuthorDate: 2023-12-31 20:46:04 +0000 Commit: Konstantin Belousov CommitDate: 2024-01-05 04:58:42 +0000 vtruncbuf: add a comment explaining the purpose of the loop Reviewed by: chs, markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D43261 --- sys/kern/vfs_subr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index eb82f2d86aff..2e2457f59f60 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -2549,6 +2549,9 @@ restart_unlocked: ; if (length > 0) { + /* + * Write out vnode metadata, e.g. indirect blocks. + */ restartsync: TAILQ_FOREACH_SAFE(bp, &bo->bo_dirty.bv_hd, b_bobufs, nbp) { if (bp->b_lblkno > 0)