Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jan 2024 12:01:27 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: 9e951d6b4b70 - stable/14 - vtruncbuf: improve the check for meta buffer
Message-ID:  <202401121201.40CC1RT6000694@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/src/commit/?id=9e951d6b4b708fad9993aca0a1cede1c74d735e0

commit 9e951d6b4b708fad9993aca0a1cede1c74d735e0
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:46:53 +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 8cc4a57cdafb..3928cde7a719 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -2563,7 +2563,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



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