Lines Matching refs:ds_next

156     dsl_dataset_t *ds_next, boolean_t after_branch_point, dmu_tx_t *tx)  in process_old_deadlist()  argument
164 ASSERT(ds_next->ds_deadlist.dl_oldfmt); in process_old_deadlist()
170 VERIFY0(bpobj_iterate(&ds_next->ds_deadlist.dl_bpobj, in process_old_deadlist()
181 dsl_deadlist_close(&ds_next->ds_deadlist); in process_old_deadlist()
184 dsl_dataset_phys(ds_next)->ds_deadlist_obj; in process_old_deadlist()
185 dsl_dataset_phys(ds_next)->ds_deadlist_obj = deadlist_obj; in process_old_deadlist()
188 VERIFY0(dsl_deadlist_open(&ds_next->ds_deadlist, mos, in process_old_deadlist()
189 dsl_dataset_phys(ds_next)->ds_deadlist_obj)); in process_old_deadlist()
275 dsl_destroy_snapshot_handle_remaps(dsl_dataset_t *ds, dsl_dataset_t *ds_next, in dsl_destroy_snapshot_handle_remaps() argument
281 if (dsl_dataset_remap_deadlist_exists(ds_next)) { in dsl_destroy_snapshot_handle_remaps()
285 dsl_deadlist_move_bpobj(&ds_next->ds_remap_deadlist, in dsl_destroy_snapshot_handle_remaps()
296 mutex_enter(&ds_next->ds_remap_deadlist_lock); in dsl_destroy_snapshot_handle_remaps()
297 if (!dsl_dataset_remap_deadlist_exists(ds_next)) in dsl_destroy_snapshot_handle_remaps()
298 dsl_dataset_create_remap_deadlist(ds_next, tx); in dsl_destroy_snapshot_handle_remaps()
299 mutex_exit(&ds_next->ds_remap_deadlist_lock); in dsl_destroy_snapshot_handle_remaps()
301 dsl_deadlist_merge(&ds_next->ds_remap_deadlist, in dsl_destroy_snapshot_handle_remaps()
378 dsl_dataset_t *ds_next; in dsl_destroy_snapshot_sync_impl() local
383 dsl_dataset_phys(ds)->ds_next_snap_obj, FTAG, &ds_next)); in dsl_destroy_snapshot_sync_impl()
384 ASSERT3U(dsl_dataset_phys(ds_next)->ds_prev_snap_obj, ==, obj); in dsl_destroy_snapshot_sync_impl()
386 old_unique = dsl_dataset_phys(ds_next)->ds_unique_bytes; in dsl_destroy_snapshot_sync_impl()
388 dmu_buf_will_dirty(ds_next->ds_dbuf, tx); in dsl_destroy_snapshot_sync_impl()
389 dsl_dataset_phys(ds_next)->ds_prev_snap_obj = in dsl_destroy_snapshot_sync_impl()
391 dsl_dataset_phys(ds_next)->ds_prev_snap_txg = in dsl_destroy_snapshot_sync_impl()
396 if (ds_next->ds_deadlist.dl_oldfmt) { in dsl_destroy_snapshot_sync_impl()
397 process_old_deadlist(ds, ds_prev, ds_next, in dsl_destroy_snapshot_sync_impl()
402 dsl_deadlist_space_range(&ds_next->ds_deadlist, in dsl_destroy_snapshot_sync_impl()
410 dsl_deadlist_space_range(&ds_next->ds_deadlist, in dsl_destroy_snapshot_sync_impl()
417 dsl_deadlist_move_bpobj(&ds_next->ds_deadlist, in dsl_destroy_snapshot_sync_impl()
424 dsl_deadlist_merge(&ds_next->ds_deadlist, in dsl_destroy_snapshot_sync_impl()
432 dsl_deadlist_discard_tree(&ds_next->ds_deadlist); in dsl_destroy_snapshot_sync_impl()
440 dsl_destroy_snapshot_handle_remaps(ds, ds_next, tx); in dsl_destroy_snapshot_sync_impl()
448 if (ds_next->ds_is_snapshot) { in dsl_destroy_snapshot_sync_impl()
461 dsl_dataset_phys(ds_next)->ds_next_snap_obj, in dsl_destroy_snapshot_sync_impl()
467 dsl_dataset_phys(ds_next)->ds_unique_bytes += used; in dsl_destroy_snapshot_sync_impl()
469 ASSERT3P(ds_next->ds_prev, ==, NULL); in dsl_destroy_snapshot_sync_impl()
488 ASSERT3P(ds_next->ds_prev, ==, ds); in dsl_destroy_snapshot_sync_impl()
489 dsl_dataset_rele(ds_next->ds_prev, ds_next); in dsl_destroy_snapshot_sync_impl()
490 ds_next->ds_prev = NULL; in dsl_destroy_snapshot_sync_impl()
494 ds_next, &ds_next->ds_prev)); in dsl_destroy_snapshot_sync_impl()
497 dsl_dataset_recalc_head_uniq(ds_next); in dsl_destroy_snapshot_sync_impl()
504 if (old_unique < ds_next->ds_reserved) { in dsl_destroy_snapshot_sync_impl()
507 dsl_dataset_phys(ds_next)->ds_unique_bytes; in dsl_destroy_snapshot_sync_impl()
511 ds_next->ds_reserved - old_unique); in dsl_destroy_snapshot_sync_impl()
516 dsl_dataset_rele(ds_next, FTAG); in dsl_destroy_snapshot_sync_impl()