From f06ee197d04358d8251153c415df32f0d899467d Mon Sep 17 00:00:00 2001 From: avg Date: Thu, 16 Jan 2014 16:13:21 +0000 Subject: MFC r258739: zfs mappedread_sf: assert that a page is never partially valid --- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/cddl') diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c index d3a3ab4..743611e 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c @@ -580,8 +580,10 @@ mappedread_sf(vnode_t *vp, int nbytes, uio_t *uio) vm_page_activate(pp); } vm_page_unlock(pp); - } else + } else { + ASSERT3U(pp->valid, ==, VM_PAGE_BITS_ALL); vm_page_sunbusy(pp); + } if (error) break; uio->uio_resid -= bytes; -- cgit v1.1