Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jan 2024 12:02:50 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 3828d60715e6 - stable/13 - vtruncbuf: add a comment explaining the purpose of the loop
Message-ID:  <202401121202.40CC2oSm005679@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kib:

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

commit 3828d60715e64cfbae93449858cc6ae8ce615a63
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2023-12-31 20:46:04 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-01-11 16:47:52 +0000

    vtruncbuf: add a comment explaining the purpose of the loop
    
    (cherry picked from commit 4c41d10f1538c232174d5200d245e5fcd9936958)
---
 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 3305110ed065..c9c76c903977 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -2564,6 +2564,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)



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