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 d1e523000336..2d154819ab4d 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 @@ -318,6 +318,9 @@ mappedwrite(vnode_t *vp, int nbytes, uio_t *uio, dmu_tx_t *tx) sf_buf_free(sf); sched_unpin(); VM_OBJECT_LOCK(obj); + vm_page_lock_queues(); + vm_page_set_validclean(m, off, bytes); + vm_page_unlock_queues(); vm_page_wakeup(m); } else { VM_OBJECT_UNLOCK(obj); diff --git a/sys/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c b/sys/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c index d1e523000336..2d154819ab4d 100644 --- a/sys/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c +++ b/sys/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c @@ -318,6 +318,9 @@ mappedwrite(vnode_t *vp, int nbytes, uio_t *uio, dmu_tx_t *tx) sf_buf_free(sf); sched_unpin(); VM_OBJECT_LOCK(obj); + vm_page_lock_queues(); + vm_page_set_validclean(m, off, bytes); + vm_page_unlock_queues(); vm_page_wakeup(m); } else { VM_OBJECT_UNLOCK(obj);