git: 3828d60715e6 - stable/13 - 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:02:50 UTC
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)