Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jan 2021 03:23:10 GMT
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: d71965127fb8 - main - tmpfs: use VNPASS when asserting on a vnode in tmpfs_read_pgcache
Message-ID:  <202101010323.1013NAp9038753@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mjg:

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

commit d71965127fb8cf4032d35719760ef431a654bde8
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-01-01 03:19:13 +0000
Commit:     Mateusz Guzik <mjg@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);



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