Skip to content

Instantly share code, notes, and snippets.

@lundman
Created October 21, 2018 10:14
Show Gist options
  • Save lundman/22e11111a363ee146b564d0394b2c849 to your computer and use it in GitHub Desktop.
Save lundman/22e11111a363ee146b564d0394b2c849 to your computer and use it in GitHub Desktop.
diff --git a/module/zfs/dsl_deadlist.c b/module/zfs/dsl_deadlist.c
index a2e2a1f..9a82a18 100644
--- a/module/zfs/dsl_deadlist.c
+++ b/module/zfs/dsl_deadlist.c
@@ -105,6 +105,11 @@ dsl_deadlist_open(dsl_deadlist_t *dl, objset_t *os, uint64_t object)
mutex_init(&dl->dl_lock, NULL, MUTEX_DEFAULT, NULL);
dl->dl_os = os;
dl->dl_object = object;
+ dl->dl_dbuf = NULL;
+ dl->dl_oldfmt = B_TRUE;
+ VERIFY3U(0, ==, bpobj_open(&dl->dl_bpobj, os, object));
+ return;
+
VERIFY3U(0, ==, dmu_bonus_hold(os, object, dl, &dl->dl_dbuf));
dmu_object_info_from_db(dl->dl_dbuf, &doi);
if (doi.doi_type == DMU_OT_BPOBJ) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment