tmpfs: use VNPASS when asserting on a vnode in tmpfs_read_pgcache

This commit is contained in:
Mateusz Guzik 2021-01-01 03:19:13 +00:00
parent 43d0803c45
commit d71965127f

View File

@ -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);