svn commit: r318923 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Andriy Gapon
avg at FreeBSD.org
Fri May 26 10:37:56 UTC 2017
Author: avg
Date: Fri May 26 10:37:55 2017
New Revision: 318923
URL: https://svnweb.freebsd.org/changeset/base/318923
Log:
zfs_putpages: assert that sa_bulk_update() must succeed
Same as the upstream does in r316927.
MFC after: 1 week
Modified:
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c Fri May 26 10:34:33 2017 (r318922)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c Fri May 26 10:37:55 2017 (r318923)
@@ -4758,7 +4758,8 @@ zfs_putpages(struct vnode *vp, vm_page_t
&zp->z_pflags, 8);
zfs_tstamp_update_setup(zp, CONTENT_MODIFIED, mtime, ctime,
B_TRUE);
- (void)sa_bulk_update(zp->z_sa_hdl, bulk, count, tx);
+ err = sa_bulk_update(zp->z_sa_hdl, bulk, count, tx);
+ ASSERT0(err);
zfs_log_write(zfsvfs->z_log, tx, TX_WRITE, zp, off, len, 0);
zfs_vmobject_wlock(object);
More information about the svn-src-head
mailing list