/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | bpobj.c | 40 spa_t *spa = dmu_objset_spa(os); in bpobj_alloc_empty() 66 spa_feature_decr(dmu_objset_spa(os), SPA_FEATURE_EMPTY_BPOBJ, tx); in bpobj_decr_empty() 67 if (!spa_feature_is_active(dmu_objset_spa(os), in bpobj_decr_empty() 82 if (spa_version(dmu_objset_spa(os)) < SPA_VERSION_BPOBJ_ACCOUNT) in bpobj_alloc() 84 else if (spa_version(dmu_objset_spa(os)) < SPA_VERSION_DEADLISTS) in bpobj_alloc() 86 else if (!spa_feature_is_active(dmu_objset_spa(os), in bpobj_alloc() 330 spa_t *spa = dmu_objset_spa(bpo->bpo_os); in bpobj_iterate_blkptrs() 929 bp_get_dsize_sync(dmu_objset_spa(bpo->bpo_os), bp); in bpobj_enqueue() 1007 sra.spa = dmu_objset_spa(bpo->bpo_os); in bpobj_space_range()
|
H A D | space_map.c | 859 spa_t *spa = dmu_objset_spa(os); in space_map_truncate() 912 spa_t *spa = dmu_objset_spa(os); in space_map_alloc() 933 spa_t *spa = dmu_objset_spa(os); in space_map_free_obj() 966 spa_t *spa = dmu_objset_spa(sm->sm_os); in space_map_estimate_optimal_size()
|
H A D | dmu_object.c | 485 spa_feature_incr(dmu_objset_spa(mos), in dmu_object_zapify() 502 spa_feature_decr(dmu_objset_spa(mos), in dmu_object_free_zapified()
|
H A D | zfs_vnops.c | 1374 if (dmu_objset_spa(inos) != dmu_objset_spa(outos)) { in zfs_clone_range() 1383 if (!spa_feature_is_enabled(dmu_objset_spa(outos), in zfs_clone_range() 1593 last_synced_txg = spa_last_synced_txg(dmu_objset_spa(inos)); in zfs_clone_range() 1760 ASSERT(spa_feature_is_enabled(dmu_objset_spa(zfsvfs->z_os), in zfs_clone_range_replay()
|
H A D | dataset_kstats.c | 116 "zfs/%s", spa_name(dmu_objset_spa(objset))); in dataset_kstats_create()
|
H A D | dsl_bookmark.c | 1012 spa_feature_decr(dmu_objset_spa(mos), in dsl_bookmark_destroy_sync_impl() 1062 spa_feature_decr(dmu_objset_spa(mos), in dsl_bookmark_destroy_sync_impl() 1071 spa_feature_decr(dmu_objset_spa(mos), in dsl_bookmark_destroy_sync_impl() 1077 spa_feature_decr(dmu_objset_spa(mos), in dsl_bookmark_destroy_sync_impl()
|
H A D | dsl_deleg.c | 570 if (spa_version(dmu_objset_spa(dp->dp_meta_objset)) < in dsl_deleg_access_impl() 734 if (spa_version(dmu_objset_spa(sdd->dd_pool->dp_meta_objset)) < in dsl_deleg_set_create_perms()
|
H A D | dsl_destroy.c | 1136 spa_feature_decr(dmu_objset_spa(mos), in dsl_destroy_head_sync_impl() 1143 spa_feature_decr(dmu_objset_spa(mos), in dsl_destroy_head_sync_impl() 1147 spa_feature_decr(dmu_objset_spa(mos), in dsl_destroy_head_sync_impl()
|
H A D | dbuf.c | 2562 txg != spa_syncing_txg(dmu_objset_spa(db->db_objset))); in dbuf_undirty() 2585 brt_pending_remove(dmu_objset_spa(db->db_objset), in dbuf_undirty() 3041 ASSERT(spa_feature_is_active(dmu_objset_spa(db->db_objset), in dmu_buf_write_embedded() 3772 zio_t *pio = zio_root(dmu_objset_spa(dn->dn_objset), NULL, NULL, in dbuf_prefetch_impl() 4033 ASSERT3U(blksz, <=, spa_maxblocksize(dmu_objset_spa(db->db_objset))); in dbuf_spill_set_blksz() 4576 spa_t *spa = dmu_objset_spa(dn->dn_objset); in dbuf_lightweight_ready() 4655 dr->dr_zio = zio_write(pio, dmu_objset_spa(dn->dn_objset), in dbuf_sync_lightweight() 5159 spa_t *spa = dmu_objset_spa(os); in dbuf_remap_impl_callback() 5176 spa_t *spa = dmu_objset_spa(dn->dn_objset); in dbuf_remap_impl() 5230 spa_t *spa = dmu_objset_spa(db->db_objset); in dbuf_remap()
|
H A D | dnode.c | 721 spa_maxdnodesize(dmu_objset_spa(dn->dn_objset))); in dnode_allocate() 723 spa_maxblocksize(dmu_objset_spa(dn->dn_objset))); in dnode_allocate() 814 spa_maxblocksize(dmu_objset_spa(dn->dn_objset))); in dnode_reallocate() 823 DN_BONUS_SIZE(spa_maxdnodesize(dmu_objset_spa(dn->dn_objset)))); in dnode_reallocate() 1936 ASSERT3U(size, <=, spa_maxblocksize(dmu_objset_spa(dn->dn_objset))); in dnode_set_blksz()
|
H A D | dmu_recv.c | 1901 drro->drr_blksz > spa_maxblocksize(dmu_objset_spa(rwa->os)) || in receive_object() 1903 DN_BONUS_SIZE(spa_maxdnodesize(dmu_objset_spa(rwa->os))) || in receive_object() 1905 (spa_maxdnodesize(dmu_objset_spa(rwa->os)) >> DNODE_SHIFT)) { in receive_object() 2528 drrs->drr_length > spa_maxblocksize(dmu_objset_spa(rwa->os))) in receive_spill() 2591 abuf = arc_loan_raw_buf(dmu_objset_spa(rwa->os), in receive_spill() 2597 abuf = arc_loan_buf(dmu_objset_spa(rwa->os), in receive_spill()
|
H A D | dsl_deadlist.c | 377 if (spa_version(dmu_objset_spa(os)) < SPA_VERSION_DEADLISTS) in dsl_deadlist_alloc() 479 sign * bp_get_dsize_sync(dmu_objset_spa(dl->dl_os), bp); in dsl_deadlist_insert()
|
H A D | dmu_objset.c | 112 dmu_objset_spa(objset_t *os) in dmu_objset_spa() function 2544 spa_writeable(dmu_objset_spa(os))); in dmu_objset_userobjspace_upgradable() 2554 spa_writeable(dmu_objset_spa(os))); in dmu_objset_projectquota_upgradable() 3160 EXPORT_SYMBOL(dmu_objset_spa);
|
H A D | dsl_crypt.c | 282 spa = dmu_objset_spa(osa); in dmu_objset_crypto_key_equal() 283 if (spa != dmu_objset_spa(osb)) in dmu_objset_crypto_key_equal()
|
H A D | zvol.c | 788 !spa_writeable(dmu_objset_spa(os))) { in zvol_setup_zv()
|
H A D | zil.c | 3864 zilog->zl_spa = dmu_objset_spa(os); in zil_alloc() 3874 spa_maxblocksize(dmu_objset_spa(os))); in zil_alloc()
|
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | zfs_vfsops.c | 383 ASSERT3U(newval, <=, spa_maxblocksize(dmu_objset_spa(zfsvfs->z_os))); in blksz_changed_cb() 480 if (zfs_is_readonly(zfsvfs) || !spa_writeable(dmu_objset_spa(os))) { in zfs_register_callbacks() 649 zfs_zpl_version_map(spa_version(dmu_objset_spa(os)))) { in zfsvfs_init() 653 (u_longlong_t)spa_version(dmu_objset_spa(os))); in zfsvfs_init() 925 if (spa_writeable(dmu_objset_spa(zfsvfs->z_os))) { in zfsvfs_setup() 1622 if ((issnap || !spa_writeable(dmu_objset_spa(zfsvfs->z_os))) && in zfs_remount() 1953 spa_version(dmu_objset_spa(zfsvfs->z_os))) in zfs_set_version() 1980 ASSERT3U(spa_version(dmu_objset_spa(zfsvfs->z_os)), >=, in zfs_set_version()
|
H A D | zpl_file_range.c | 60 dmu_objset_spa(ITOZSB(dst_i)->z_os), SPA_FEATURE_BLOCK_CLONING)) in zpl_clone_file_range_impl()
|
H A D | zvol_os.c | 1690 if (spa_writeable(dmu_objset_spa(os))) { in zvol_os_create_minor()
|
H A D | zfs_znode_os.c | 1841 version = zfs_zpl_version_map(spa_version(dmu_objset_spa(os))); in zfs_create_fs()
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | zfs_znode.h | 124 spa_version(dmu_objset_spa(os)) >= SPA_VERSION_FUID) 126 spa_version(dmu_objset_spa(os)) >= SPA_VERSION_SA)
|
H A D | dmu.h | 1032 extern struct spa *dmu_objset_spa(objset_t *os);
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | zfs_vfsops.c | 506 ASSERT3U(newval, <=, spa_maxblocksize(dmu_objset_spa(zfsvfs->z_os))); in blksz_changed_cb() 663 !spa_writeable(dmu_objset_spa(os))) { in zfs_register_callbacks() 810 zfs_zpl_version_map(spa_version(dmu_objset_spa(os)))) { in zfsvfs_init() 814 (u_longlong_t)spa_version(dmu_objset_spa(os))); in zfsvfs_init() 1116 if (spa_writeable(dmu_objset_spa(zfsvfs->z_os))) { in zfsvfs_setup() 2188 spa_version(dmu_objset_spa(zfsvfs->z_os))) in zfs_set_version() 2215 ASSERT3U(spa_version(dmu_objset_spa(zfsvfs->z_os)), >=, in zfs_set_version()
|
H A D | zvol_os.c | 589 spa_t *spa = dmu_objset_spa(zv->zv_objset); in zvol_geom_bio_getattr() 1178 spa_t *spa = dmu_objset_spa(zv->zv_objset); in zvol_cdev_ioctl() 1474 if (dmu_objset_is_snapshot(os) || !spa_writeable(dmu_objset_spa(os))) in zvol_os_create_minor() 1487 if (spa_writeable(dmu_objset_spa(os))) { in zvol_os_create_minor()
|
H A D | zfs_znode_os.c | 1665 version = zfs_zpl_version_map(spa_version(dmu_objset_spa(os))); in zfs_create_fs()
|