git: dc024acd5174 - stable/14 - vtruncbuf: add a comment explaining the purpose of the loop
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 12 Jan 2024 12:01:26 UTC
The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=dc024acd51740f794d09fc478be6a4f046766ba4 commit dc024acd51740f794d09fc478be6a4f046766ba4 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:46: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 811c5cef45d1..8cc4a57cdafb 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -2558,6 +2558,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)