aboutsummaryrefslogtreecommitdiff
path: root/cddl/contrib/opensolaris/cmd
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2019-06-03 20:24:40 +0000
committerAlexander Motin <mav@FreeBSD.org>2019-06-03 20:24:40 +0000
commit07a5c938c9a398011f57a2cfe73feb264d4c1a3c (patch)
tree3122c9cf5b335e38b488d72b3c84fec448ca032d /cddl/contrib/opensolaris/cmd
parenta66a7143d47c5062463c83c4a9cd3567e5767561 (diff)
parent0e67d63bd897a716179a2784063c4c0af25e200e (diff)
downloadsrc-07a5c938c9a398011f57a2cfe73feb264d4c1a3c.tar.gz
src-07a5c938c9a398011f57a2cfe73feb264d4c1a3c.zip
MFV r348578: 9962 zil_commit should omit cache thrash
illumos/illumos-gate@cab3a55e158118937e07d059c46f1bc14d1f254d Reviewed by: Matt Ahrens <matt@delphix.com> Reviewed by: Brad Lewis <brad.lewis@delphix.com> Reviewed by: Patrick Mooney <patrick.mooney@joyent.com> Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com> Approved by: Joshua M. Clulow <josh@sysmgr.org> Author: Prakash Surya <prakash.surya@delphix.com>
Notes
Notes: svn path=/head/; revision=348579
Diffstat (limited to 'cddl/contrib/opensolaris/cmd')
-rw-r--r--cddl/contrib/opensolaris/cmd/ztest/ztest.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cddl/contrib/opensolaris/cmd/ztest/ztest.c b/cddl/contrib/opensolaris/cmd/ztest/ztest.c
index ad3e51549153..37acf34ec369 100644
--- a/cddl/contrib/opensolaris/cmd/ztest/ztest.c
+++ b/cddl/contrib/opensolaris/cmd/ztest/ztest.c
@@ -1933,6 +1933,7 @@ zil_replay_func_t *ztest_replay_vector[TX_MAX_TYPE] = {
* ZIL get_data callbacks
*/
+/* ARGSUSED */
static void
ztest_get_done(zgd_t *zgd, int error)
{
@@ -1945,9 +1946,6 @@ ztest_get_done(zgd_t *zgd, int error)
ztest_range_unlock(zgd->zgd_rl);
ztest_object_unlock(zd, object);
- if (error == 0 && zgd->zgd_bp)
- zil_lwb_add_block(zgd->zgd_lwb, zgd->zgd_bp);
-
umem_free(zgd, sizeof (*zgd));
}