git: eb289bd9517b - main - vn_fallocate/vn_deallocate: drop vnode addr from exterrors
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 18 Nov 2026 03:51:41 UTC
The branch main has been updated by kevans:
URL: https://cgit.FreeBSD.org/src/commit/?id=eb289bd9517bc4ff6fa6eecefe2f43fc50916a6a
commit eb289bd9517bc4ff6fa6eecefe2f43fc50916a6a
Author: Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2026-11-18 03:46:16 +0000
Commit: Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2026-11-18 03:51:08 +0000
vn_fallocate/vn_deallocate: drop vnode addr from exterrors
This was converted from a KASSERT where it made sense, but not enough
thought was applied. vp is useless, just print both offset/len instead.
Reported by: llm-postcr
Fixes: 95c7b9eaa9ec ("vfs: fail VOP_DEALLOCATE passes [...]")
Fixes: 8bee7ea63a6a ("vfs: fail VOP_ALLOCATE passes [...]")
---
sys/kern/vfs_vnops.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
index dbef4b520717..816c76d9aad0 100644
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -4003,8 +4003,8 @@ vn_fallocate(struct file *fp, off_t offset, off_t len, struct thread *td)
*/
if (len >= olen) {
error = EXTERROR(EIO,
- "no progress on vp %p (off %jd)",
- vp, (intmax_t)ooffset);
+ "no progress made at offset %jd, len %jd",
+ (intmax_t)ooffset, (intmax_t)olen);
break;
}
@@ -4073,8 +4073,8 @@ vn_deallocate_impl(struct vnode *vp, off_t *offset, off_t *length, int flags,
*/
if (error == 0 && len >= olen) {
error = EXTERROR(EIO,
- "no progress on vp %p (off %jd)",
- vp, (intmax_t)off);
+ "no progress made at offset %jd, len %jd",
+ (intmax_t)off, (intmax_t)olen);
}
}