git: 0166a12e580f - stable/13 - vtruncbuf: improve the check for meta buffer

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Fri, 12 Jan 2024 12:02:51 UTC
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=0166a12e580fbacdba9f669065c43e98d3a93aca

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

    vtruncbuf: improve the check for meta buffer
    
    (cherry picked from commit 2d33ad48bd37f27925e4c46c798f8f2d23a2b501)
---
 sys/kern/vfs_subr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index c9c76c903977..1166fd6c5389 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -2569,7 +2569,7 @@ restart_unlocked:
 		 */
 restartsync:
 		TAILQ_FOREACH_SAFE(bp, &bo->bo_dirty.bv_hd, b_bobufs, nbp) {
-			if (bp->b_lblkno > 0)
+			if (bp->b_lblkno >= 0)
 				continue;
 			/*
 			 * Since we hold the vnode lock this should only