aboutsummaryrefslogtreecommitdiff
path: root/module/zfs/dmu_send.c
diff options
context:
space:
mode:
authorRichard Yao <richard.yao@alumni.stonybrook.edu>2022-10-17 06:20:21 +0000
committerBrian Behlendorf <behlendorf1@llnl.gov>2022-10-18 22:39:56 +0000
commitfb823de9fb086a43e6618abe93e540d6f8865c32 (patch)
treed054a1c3d9153dbf97b87955187921678e828903 /module/zfs/dmu_send.c
parent717641ac09315ef254a234f4b866e92662a691a1 (diff)
downloadsrc-fb823de9fb086a43e6618abe93e540d6f8865c32.tar.gz
src-fb823de9fb086a43e6618abe93e540d6f8865c32.zip
Diffstat (limited to 'module/zfs/dmu_send.c')
-rw-r--r--module/zfs/dmu_send.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/module/zfs/dmu_send.c b/module/zfs/dmu_send.c
index 4ee3ffc352b8..ceef87a3002e 100644
--- a/module/zfs/dmu_send.c
+++ b/module/zfs/dmu_send.c
@@ -1586,9 +1586,8 @@ send_merge_thread(void *arg)
}
range_free(front_ranges[i]);
}
- if (range == NULL)
- range = kmem_zalloc(sizeof (*range), KM_SLEEP);
- range->eos_marker = B_TRUE;
+ ASSERT3P(range, !=, NULL);
+ ASSERT3S(range->eos_marker, ==, B_TRUE);
bqueue_enqueue_flush(&smt_arg->q, range, 1);
spl_fstrans_unmark(cookie);
thread_exit();