Skip to content

Commit

Permalink
tmpfs: use VNPASS when asserting on a vnode in tmpfs_read_pgcache
Browse files Browse the repository at this point in the history
  • Loading branch information
mjguzik committed Jan 1, 2021
1 parent 43d0803 commit d719651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/fs/tmpfs/tmpfs_vnops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d719651

Please sign in to comment.