diff options
Diffstat (limited to 'module')
-rw-r--r-- | module/zfs/zil.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/module/zfs/zil.c b/module/zfs/zil.c index e247c1e4f..d5ebf7561 100644 --- a/module/zfs/zil.c +++ b/module/zfs/zil.c @@ -720,7 +720,8 @@ zil_create(zilog_t *zilog) txg_wait_synced(zilog->zl_dmu_pool, txg); } - ASSERT(bcmp(&blk, &zh->zh_log, sizeof (blk)) == 0); + ASSERT(error != 0 || bcmp(&blk, &zh->zh_log, sizeof (blk)) == 0); + IMPLY(error == 0, lwb != NULL); return (lwb); } |