zfs_putpages: assert that sa_bulk_update() must succeed

Same as the upstream does in r316927.

MFC after:	1 week
This commit is contained in:
Andriy Gapon 2017-05-26 10:37:55 +00:00
parent 04b7c6b337
commit cf781c9b60
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=318923

View File

@ -4758,7 +4758,8 @@ zfs_putpages(struct vnode *vp, vm_page_t *ma, size_t len, int flags,
&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);