Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 May 2017 10:37:55 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r318923 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <201705261037.v4QAbtak055293@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705261037.v4QAbtak055293>