git: d71965127fb8 - main - tmpfs: use VNPASS when asserting on a vnode in tmpfs_read_pgcache
Mateusz Guzik
mjg at FreeBSD.org
Fri Jan 1 03:23:10 UTC 2021
The branch main has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=d71965127fb8cf4032d35719760ef431a654bde8
commit d71965127fb8cf4032d35719760ef431a654bde8
Author: Mateusz Guzik <mjg at FreeBSD.org>
AuthorDate: 2021-01-01 03:19:13 +0000
Commit: Mateusz Guzik <mjg at FreeBSD.org>
CommitDate: 2021-01-01 03:23:01 +0000
tmpfs: use VNPASS when asserting on a vnode in tmpfs_read_pgcache
---
sys/fs/tmpfs/tmpfs_vnops.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c
index 9c0eba42d317..6782d71d9207 100644
--- a/sys/fs/tmpfs/tmpfs_vnops.c
+++ b/sys/fs/tmpfs/tmpfs_vnops.c
@@ -600,7 +600,7 @@ tmpfs_read_pgcache(struct vop_read_pgcache_args *v)
int error;
vp = v->a_vp;
- MPASS((vp->v_irflag & VIRF_PGREAD) != 0);
+ VNPASS((vp->v_irflag & VIRF_PGREAD) != 0, vp);
if (v->a_uio->uio_offset < 0)
return (EINVAL);
More information about the dev-commits-src-main
mailing list