git: a0ea4c04b526 - main - ffs_truncate: correct INVARIANTS panic debug output
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 15 Oct 2025 07:25:25 UTC
The branch main has been updated by rlibby:
URL: https://cgit.FreeBSD.org/src/commit/?id=a0ea4c04b5269ac138a3cf551047076472c6028e
commit a0ea4c04b5269ac138a3cf551047076472c6028e
Author: Ryan Libby <rlibby@FreeBSD.org>
AuthorDate: 2025-10-15 04:03:04 +0000
Commit: Ryan Libby <rlibby@FreeBSD.org>
CommitDate: 2025-10-15 04:03:04 +0000
ffs_truncate: correct INVARIANTS panic debug output
Reported by: GCC -Warray-bounds
Reviewed by: mckusick
Differential Revision: https://reviews.freebsd.org/D53037
---
sys/ufs/ffs/ffs_inode.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/ufs/ffs/ffs_inode.c b/sys/ufs/ffs/ffs_inode.c
index 970536a13aa5..f47cfd08f75a 100644
--- a/sys/ufs/ffs/ffs_inode.c
+++ b/sys/ufs/ffs/ffs_inode.c
@@ -653,8 +653,8 @@ done:
for (i = 0; i < UFS_NDADDR; i++)
if (newblks[i] != DIP(ip, i_db[i]))
panic("ffs_truncate2: blkno %d newblks %jd != i_db %jd",
- i, (intmax_t)newblks[UFS_NDADDR + level],
- (intmax_t)DIP(ip, i_ib[level]));
+ i, (intmax_t)newblks[i],
+ (intmax_t)DIP(ip, i_db[i]));
BO_LOCK(bo);
if (length == 0 &&
(fs->fs_magic != FS_UFS2_MAGIC || ip->i_din2->di_extsize == 0) &&