diff options
author | Richard Yao <richard.yao@alumni.stonybrook.edu> | 2022-10-17 06:20:21 +0000 |
---|---|---|
committer | Brian Behlendorf <behlendorf1@llnl.gov> | 2022-10-18 22:39:56 +0000 |
commit | fb823de9fb086a43e6618abe93e540d6f8865c32 (patch) | |
tree | d054a1c3d9153dbf97b87955187921678e828903 /module/zfs/dmu_send.c | |
parent | 717641ac09315ef254a234f4b866e92662a691a1 (diff) | |
download | src-fb823de9fb086a43e6618abe93e540d6f8865c32.tar.gz src-fb823de9fb086a43e6618abe93e540d6f8865c32.zip |
Diffstat (limited to 'module/zfs/dmu_send.c')
-rw-r--r-- | module/zfs/dmu_send.c | 5 |
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(); |