The branch main has been updated by kib:

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

commit 4c41d10f1538c232174d5200d245e5fcd9936958
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2023-12-31 20:46:04 +0000
Commit:     Konstantin Belousov <[email protected]>
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)

Reply via email to