svn commit: r260774 - stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

Andriy Gapon avg at FreeBSD.org
Thu Jan 16 16:13:33 UTC 2014


Author: avg
Date: Thu Jan 16 16:13:32 2014
New Revision: 260774
URL: http://svnweb.freebsd.org/changeset/base/260774

Log:
  MFC r258739: zfs mappedread_sf: assert that a page is never partially valid

Modified:
  stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/cddl/contrib/opensolaris/   (props changed)

Modified: stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
==============================================================================
--- stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c	Thu Jan 16 16:13:21 2014	(r260773)
+++ stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c	Thu Jan 16 16:13:32 2014	(r260774)
@@ -572,6 +572,8 @@ mappedread_sf(vnode_t *vp, int nbytes, u
 				vm_page_activate(pp);
 			}
 			vm_page_unlock(pp);
+		} else {
+			ASSERT3U(pp->valid, ==, VM_PAGE_BITS_ALL);
 		}
 		if (error)
 			break;


More information about the svn-src-stable-9 mailing list