Home
last modified time | relevance | path

Searched refs:dsl_dataset_phys (Results 1 – 24 of 24) sorted by relevance

/freebsd/sys/contrib/openzfs/module/zfs/
H A Ddsl_destroy.c85 if (dsl_dataset_phys(ds)->ds_num_children > 1) in dsl_destroy_snapshot_check_impl()
137 dsl_dataset_phys(poa->ds)->ds_prev_snap_txg) { in process_old_cb()
141 dsl_dataset_phys(poa->ds_prev)->ds_prev_snap_txg) { in process_old_cb()
142 dsl_dataset_phys(poa->ds_prev)->ds_unique_bytes += in process_old_cb()
173 ASSERT3U(poa.used, ==, dsl_dataset_phys(ds)->ds_unique_bytes); in process_old_deadlist()
182 deadlist_obj = dsl_dataset_phys(ds)->ds_deadlist_obj; in process_old_deadlist()
183 dsl_dataset_phys(ds)->ds_deadlist_obj = 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()
187 dsl_dataset_phys(ds)->ds_deadlist_obj)); in process_old_deadlist()
[all …]
H A Ddsl_dataset.c129 ds_phys = dsl_dataset_phys(ds); in parent_delta()
162 dsl_dataset_phys(ds)->ds_prev_snap_txg); in dsl_dataset_block_born()
166 dsl_dataset_phys(ds)->ds_referenced_bytes += used; in dsl_dataset_block_born()
167 dsl_dataset_phys(ds)->ds_compressed_bytes += compressed; in dsl_dataset_block_born()
168 dsl_dataset_phys(ds)->ds_uncompressed_bytes += uncompressed; in dsl_dataset_block_born()
169 dsl_dataset_phys(ds)->ds_unique_bytes += used; in dsl_dataset_block_born()
227 if (birth > dsl_dataset_phys(ds)->ds_prev_snap_txg) { in dsl_dataset_block_remapped()
291 if (BP_GET_LOGICAL_BIRTH(bp) > dsl_dataset_phys(ds)->ds_prev_snap_txg) { in dsl_dataset_block_kill()
316 ASSERT(dsl_dataset_phys(ds)->ds_unique_bytes >= used || in dsl_dataset_block_kill()
319 dsl_dataset_phys(ds)->ds_unique_bytes -= used; in dsl_dataset_block_kill()
[all …]
H A Ddsl_userhold.c68 if (ds != NULL && dsl_dataset_phys(ds)->ds_userrefs_obj != 0) { in dsl_dataset_user_hold_check_one()
71 error = zap_lookup(mos, dsl_dataset_phys(ds)->ds_userrefs_obj, in dsl_dataset_user_hold_check_one()
165 if (dsl_dataset_phys(ds)->ds_userrefs_obj == 0) { in dsl_dataset_user_hold_sync_one_impl()
171 zapobj = dsl_dataset_phys(ds)->ds_userrefs_obj = in dsl_dataset_user_hold_sync_one_impl()
174 zapobj = dsl_dataset_phys(ds)->ds_userrefs_obj; in dsl_dataset_user_hold_sync_one_impl()
386 zapobj = dsl_dataset_phys(ds)->ds_userrefs_obj; in dsl_dataset_user_release_check_one()
425 dsl_dataset_phys(ds)->ds_num_children == 1 && in dsl_dataset_user_release_check_one()
511 VERIFY0(zap_remove(mos, dsl_dataset_phys(ds)->ds_userrefs_obj, in dsl_dataset_user_release_sync_one()
541 dsl_dataset_phys(ds)->ds_num_children == 1 && in dsl_dataset_user_release_sync()
674 if (dsl_dataset_phys(ds)->ds_userrefs_obj != 0) { in dsl_dataset_get_holds()
[all …]
H A Ddsl_pool.c295 dsl_dataset_phys(ds)->ds_prev_snap_obj, dp, in dsl_pool_open()
1036 while (dsl_dataset_phys(ds)->ds_prev_snap_obj != 0) { in upgrade_clones_cb()
1038 dsl_dataset_phys(ds)->ds_prev_snap_obj, FTAG, &prev); in upgrade_clones_cb()
1044 if (dsl_dataset_phys(prev)->ds_next_snap_obj != ds->ds_object) in upgrade_clones_cb()
1059 ASSERT0(BP_GET_LOGICAL_BIRTH(&dsl_dataset_phys(prev)->ds_bp)); in upgrade_clones_cb()
1069 dsl_dataset_phys(ds)->ds_prev_snap_obj = prev->ds_object; in upgrade_clones_cb()
1070 dsl_dataset_phys(ds)->ds_prev_snap_txg = in upgrade_clones_cb()
1071 dsl_dataset_phys(prev)->ds_creation_txg; in upgrade_clones_cb()
1077 dsl_dataset_phys(prev)->ds_num_children++; in upgrade_clones_cb()
1079 if (dsl_dataset_phys(ds)->ds_next_snap_obj == 0) { in upgrade_clones_cb()
[all …]
H A Ddsl_scan.c2471 dsl_dataset_phys(ds)->ds_next_snap_obj; in ds_destroyed_scn_phys()
2476 (u_longlong_t)dsl_dataset_phys(ds)-> in ds_destroyed_scn_phys()
2518 dsl_dataset_phys(ds)->ds_next_snap_obj, mintxg); in dsl_scan_ds_destroyed()
2523 ASSERT3U(dsl_dataset_phys(ds)->ds_num_children, <=, 1); in dsl_scan_ds_destroyed()
2534 dsl_dataset_phys(ds)->ds_next_snap_obj, in dsl_scan_ds_destroyed()
2540 (u_longlong_t)dsl_dataset_phys(ds)-> in dsl_scan_ds_destroyed()
2562 dsl_dataset_phys(ds)->ds_prev_snap_obj; in ds_snapshotted_bookmark()
2567 (u_longlong_t)dsl_dataset_phys(ds)->ds_prev_snap_obj); in ds_snapshotted_bookmark()
2587 ASSERT(dsl_dataset_phys(ds)->ds_prev_snap_obj != 0); in dsl_scan_ds_snapshotted()
2595 dsl_dataset_phys(ds)->ds_prev_snap_obj, mintxg); in dsl_scan_ds_snapshotted()
[all …]
H A Ddsl_bookmark.c80 if (dsl_dataset_phys(ds)->ds_flags & DS_FLAG_CI_DATASET) in dsl_bookmark_lookup_impl()
349 dsl_dataset_phys_t *dsp = dsl_dataset_phys(snap); in dsl_bookmark_set_phys()
1005 if (dsl_dataset_phys(ds)->ds_flags & DS_FLAG_CI_DATASET) in dsl_bookmark_destroy_sync_impl()
1056 dsl_dataset_phys(ds)->ds_prev_snap_txg) { in dsl_bookmark_destroy_sync_impl()
1320 dsl_dataset_phys(ds)->ds_next_snap_obj, FTAG, &next)); in dsl_bookmark_ds_destroyed()
1329 dsl_dataset_phys(ds)->ds_prev_snap_txg; in dsl_bookmark_ds_destroyed()
1346 dsl_dataset_phys(ds)->ds_creation_txg; in dsl_bookmark_ds_destroyed()
1384 dsl_dataset_phys(ds)->ds_creation_txg; in dsl_bookmark_ds_destroyed()
1419 dsl_dataset_phys(ds)->ds_prev_snap_txg; in dsl_bookmark_snapshotted()
1456 dsl_dataset_phys(origin)->ds_creation_txg; in dsl_bookmark_next_changed()
[all …]
H A Dspa_errlog.c354 if (dsl_dataset_phys(ds)->ds_snapnames_zapobj != 0) { in check_filesystem()
357 dsl_dataset_phys(ds)->ds_snapnames_zapobj, &snap_count); in check_filesystem()
375 uint64_t snap_obj = dsl_dataset_phys(ds)->ds_prev_snap_obj; in check_filesystem()
376 uint64_t snap_obj_txg = dsl_dataset_phys(ds)->ds_prev_snap_txg; in check_filesystem()
391 snap_obj = dsl_dataset_phys(ds)->ds_prev_snap_obj; in check_filesystem()
392 snap_obj_txg = dsl_dataset_phys(ds)->ds_prev_snap_txg; in check_filesystem()
418 snap_obj = dsl_dataset_phys(ds)->ds_prev_snap_obj; in check_filesystem()
419 snap_obj_txg = dsl_dataset_phys(ds)->ds_prev_snap_txg; in check_filesystem()
1387 uint64_t prev_obj = dsl_dataset_phys(ds)->ds_prev_snap_obj; in find_txg_ancestor_snapshot()
1388 uint64_t prev_obj_txg = dsl_dataset_phys(ds)->ds_prev_snap_txg; in find_txg_ancestor_snapshot()
[all …]
H A Ddmu_recv.c386 dsl_dataset_phys(ds)->ds_snapnames_zapobj, in recv_begin_check_existing_impl()
445 dsl_dataset_phys(snap)->ds_guid) { in recv_begin_check_existing_impl()
452 uint64_t obj = dsl_dataset_phys(ds)->ds_prev_snap_obj; in recv_begin_check_existing_impl()
472 if (dsl_dataset_phys(snap)->ds_guid == fromguid) in recv_begin_check_existing_impl()
474 obj = dsl_dataset_phys(snap)->ds_prev_snap_obj; in recv_begin_check_existing_impl()
493 dsl_dataset_phys(ds)->ds_prev_snap_obj != in recv_begin_check_existing_impl()
792 if (dsl_dataset_phys(origin)->ds_guid != fromguid && in dmu_recv_begin_check()
1020 dsl_dataset_phys(newds)->ds_flags |= DS_FLAG_INCONSISTENT; in dmu_recv_begin_sync()
3331 ASSERT(dsl_dataset_phys(drc->drc_ds)->ds_flags & DS_FLAG_INCONSISTENT); in dmu_recv_stream()
3564 obj = dsl_dataset_phys(origin_head)->ds_prev_snap_obj; in dmu_recv_end_check()
[all …]
H A Ddsl_prop.c201 zapobj = dsl_dataset_phys(ds)->ds_props_obj; in dsl_prop_get_ds()
651 propobj = dsl_dataset_phys(cbr->cbr_ds)->ds_props_obj; in dsl_prop_changed_notify()
743 if (dsl_dataset_phys(ds)->ds_props_obj == 0 && in dsl_prop_set_sync_impl()
746 dsl_dataset_phys(ds)->ds_props_obj = in dsl_prop_set_sync_impl()
750 zapobj = dsl_dataset_phys(ds)->ds_props_obj; in dsl_prop_set_sync_impl()
855 dsl_dataset_phys(ds)->ds_props_obj = 0; in dsl_prop_set_sync_impl()
1225 if (dsl_dataset_phys(ds)->ds_props_obj != 0) { in dsl_prop_get_all_ds()
1229 dsl_dataset_phys(ds)->ds_props_obj, setpoint, flags, *nvp); in dsl_prop_get_all_ds()
H A Dzcp_iter.c70 if (dsl_dataset_phys(ds)->ds_next_clones_obj == 0) { in zcp_clones_iter()
76 dsl_dataset_phys(ds)->ds_next_clones_obj, cursor); in zcp_clones_iter()
632 if (dsl_dataset_phys(ds)->ds_userrefs_obj == 0) { in zcp_holds_iter()
638 dsl_dataset_phys(ds)->ds_userrefs_obj, cursor); in zcp_holds_iter()
H A Ddmu_send.c2047 drrb->drr_creation_time = dsl_dataset_phys(to_ds)->ds_creation_time; in create_begin_record()
2049 drrb->drr_toguid = dsl_dataset_phys(to_ds)->ds_guid; in create_begin_record()
2057 if (dsl_dataset_phys(dspp->to_ds)->ds_flags & DS_FLAG_CI_DATASET) in create_begin_record()
2468 dsc.dsc_toguid = dsl_dataset_phys(to_ds)->ds_guid; in dmu_send_impl()
2697 dspp.ancestor_zb.zbm_guid = dsl_dataset_phys(fromds)->ds_guid; in dmu_send_obj()
2699 dsl_dataset_phys(fromds)->ds_creation_txg; in dmu_send_obj()
2701 dsl_dataset_phys(fromds)->ds_creation_time; in dmu_send_obj()
2922 dsl_dataset_phys(fromds)-> in dmu_send()
2925 dsl_dataset_phys(fromds)-> in dmu_send()
2928 dsl_dataset_phys(fromds)->ds_guid; in dmu_send()
[all …]
H A Ddmu_traverse.c733 &dsl_dataset_phys(ds)->ds_bp, txg_start, resume, flags, func, arg)); in traverse_dataset_resume()
794 if (dsl_dataset_phys(ds)->ds_prev_snap_txg > txg) in traverse_pool()
795 txg = dsl_dataset_phys(ds)->ds_prev_snap_txg; in traverse_pool()
H A Ddmu_diff.c206 fromtxg = dsl_dataset_phys(fromsnap)->ds_creation_txg; in dmu_diff()
H A Ddmu_redact.c1110 dsl_dataset_phys(rta->ds)->ds_guid)) { in dmu_redact_snap()
1130 guids[i] = dsl_dataset_phys(rta->ds)->ds_guid; in dmu_redact_snap()
1153 rta->txg = dsl_dataset_phys(ds)->ds_creation_txg; in dmu_redact_snap()
H A Ddmu_objset.c2611 if (dsl_dataset_phys(ds)->ds_snapnames_zapobj == 0) in dmu_snapshot_realname()
2615 dsl_dataset_phys(ds)->ds_snapnames_zapobj, name, 8, 1, &ignored, in dmu_snapshot_realname()
2629 if (dsl_dataset_phys(ds)->ds_snapnames_zapobj == 0) in dmu_snapshot_list_next()
2635 dsl_dataset_phys(ds)->ds_snapnames_zapobj, *offp); in dmu_snapshot_list_next()
2790 snapobj = dsl_dataset_phys(ds)->ds_snapnames_zapobj; in dmu_objset_find_dp_impl()
3029 snapobj = dsl_dataset_phys(ds)->ds_snapnames_zapobj; in dmu_objset_find_impl()
H A Ddsl_deadlist.c703 dsl_dataset_phys(ds)->ds_prev_snap_txg, tx); in dsl_deadlist_regenerate()
704 mrs_obj = dsl_dataset_phys(ds)->ds_prev_snap_obj; in dsl_deadlist_regenerate()
H A Ddsl_dir.c630 for (zap_cursor_init(zc, os, dsl_dataset_phys(ds)->ds_snapnames_zapobj); in dsl_dir_init_fs_ss_count()
H A Ddsl_crypt.c2177 ASSERT(dsl_dataset_phys(ds)->ds_flags & DS_FLAG_INCONSISTENT); in dsl_crypto_recv_raw_key_check()
H A Dzfs_ioctl.c6982 dsl_dataset_phys(tosnap)->ds_guid) in zfs_ioc_send_space()
/freebsd/sys/contrib/openzfs/include/sys/
H A Ddsl_dataset.h58 (dsl_dataset_phys(ds)->ds_flags & DS_FLAG_INCONSISTENT)
78 (dsl_dataset_phys(ds)->ds_flags & DS_FLAG_DEFER_DESTROY)
140 typedef struct dsl_dataset_phys { struct
274 dsl_dataset_phys(dsl_dataset_t *ds) in dsl_dataset_phys() function
320 (dsl_dataset_phys(ds)->ds_num_children != 0)
323 ((dsl_dataset_phys(ds)->ds_flags & DS_FLAG_UNIQUE_ACCURATE) != 0)
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzpl_ctldir.c423 if (dsl_dataset_phys(ds)->ds_snapnames_zapobj != 0) { in zpl_snapdir_getattr_impl()
427 dsl_dataset_phys(ds)->ds_snapnames_zapobj, &snap_count); in zpl_snapdir_getattr_impl()
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_ctldir.c1129 if (dsl_dataset_phys(ds)->ds_snapnames_zapobj != 0) { in zfsctl_snapdir_getattr()
1131 dsl_dataset_phys(ds)->ds_snapnames_zapobj, &snap_count); in zfsctl_snapdir_getattr()
/freebsd/sys/cddl/boot/zfs/
H A Dzfsimpl.h1445 typedef struct dsl_dataset_phys { struct
/freebsd/sys/contrib/openzfs/cmd/zdb/
H A Dzdb.c4049 mos_obj_refd(dsl_dataset_phys(ds)->ds_next_clones_obj); in count_ds_mos_objects()
4050 mos_obj_refd(dsl_dataset_phys(ds)->ds_props_obj); in count_ds_mos_objects()
4051 mos_obj_refd(dsl_dataset_phys(ds)->ds_userrefs_obj); in count_ds_mos_objects()
4052 mos_obj_refd(dsl_dataset_phys(ds)->ds_snapnames_zapobj); in count_ds_mos_objects()
8254 dsl_dataset_phys(dp->dp_origin_snap)->ds_next_snap_obj, in dump_mos_leaks()