ufs: use VNPASS when asserting on a vnode in ufs_read_pgcache
This commit is contained in:
parent
978b10d8ef
commit
9997aedb8f
@ -2947,7 +2947,7 @@ ufs_read_pgcache(struct vop_read_pgcache_args *ap)
|
||||
|
||||
uio = ap->a_uio;
|
||||
vp = ap->a_vp;
|
||||
MPASS((vp->v_irflag & VIRF_PGREAD) != 0);
|
||||
VNPASS((vp->v_irflag & VIRF_PGREAD) != 0, vp);
|
||||
|
||||
if (uio->uio_resid > ptoa(io_hold_cnt) || uio->uio_offset < 0 ||
|
||||
(ap->a_ioflag & IO_DIRECT) != 0)
|
||||
|
Loading…
Reference in New Issue
Block a user