/illumos-gate/usr/src/uts/common/fs/zfs/sys/ |
H A D | dmu_tx.h | 97 dmu_tx_t *txh_tx; 116 dmu_tx_t *dmu_tx_create(objset_t *dd); 117 int dmu_tx_assign(dmu_tx_t *tx, uint64_t txg_how); 118 void dmu_tx_commit(dmu_tx_t *tx); 119 void dmu_tx_abort(dmu_tx_t *tx); 120 uint64_t dmu_tx_get_txg(dmu_tx_t *tx); 121 struct dsl_pool *dmu_tx_pool(dmu_tx_t *tx); 122 void dmu_tx_wait(dmu_tx_t *tx); 124 void dmu_tx_callback_register(dmu_tx_t *tx, dmu_tx_callback_func_t *dcb_func, 131 extern dmu_tx_t *dmu_tx_create_assigned(struct dsl_pool *dp, uint64_t txg); [all …]
|
H A D | zap.h | 123 dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx); 125 dmu_object_type_t bonustype, int bonuslen, int dnodesize, dmu_tx_t *tx); 127 dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx); 130 int dnodesize, dmu_tx_t *tx); 133 dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx); 137 int dnodesize, dmu_tx_t *tx); 139 uint64_t parent_obj, const char *name, dmu_tx_t *tx); 141 uint64_t parent_obj, const char *name, int dnodesize, dmu_tx_t *tx); 147 zap_flags_t flags, dmu_tx_t *tx); 154 dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx); [all …]
|
H A D | dmu.h | 83 typedef struct dmu_tx dmu_tx_t; typedef 327 cred_t *cr, dmu_tx_t *tx); 409 int blocksize, dmu_object_type_t bonus_type, int bonus_len, dmu_tx_t *tx); 412 dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx); 415 int dnodesize, dmu_tx_t *tx); 418 int dnodesize, dmu_tx_t *tx); 421 int bonuslen, int dnodesize, boolean_t keep_spill, dmu_tx_t *txp); 423 int blocksize, dmu_object_type_t bonus_type, int bonus_len, dmu_tx_t *tx); 425 int blocksize, dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *txp); 426 int dmu_object_rm_spill(objset_t *os, uint64_t object, dmu_tx_t *tx); [all …]
|
H A D | dsl_dataset.h | 339 struct dsl_crypto_params *, dmu_tx_t *); 341 struct dsl_crypto_params *dcp, uint64_t flags, dmu_tx_t *tx); 342 void dsl_dataset_snapshot_sync(void *arg, dmu_tx_t *tx); 343 int dsl_dataset_snapshot_check(void *arg, dmu_tx_t *tx); 345 void dsl_dataset_promote_sync(void *arg, dmu_tx_t *tx); 346 int dsl_dataset_promote_check(void *arg, dmu_tx_t *tx); 362 void dsl_dataset_sync(dsl_dataset_t *os, zio_t *zio, dmu_tx_t *tx); 363 void dsl_dataset_sync_done(dsl_dataset_t *os, dmu_tx_t *tx); 366 dmu_tx_t *tx); 368 dmu_tx_t *tx, boolean_t async); [all …]
|
H A D | bpobj.h | 68 typedef int bpobj_itor_t(void *arg, const blkptr_t *bp, dmu_tx_t *tx); 70 uint64_t bpobj_alloc(objset_t *mos, int blocksize, dmu_tx_t *tx); 71 uint64_t bpobj_alloc_empty(objset_t *os, int blocksize, dmu_tx_t *tx); 72 void bpobj_free(objset_t *os, uint64_t obj, dmu_tx_t *tx); 73 void bpobj_decr_empty(objset_t *os, dmu_tx_t *tx); 79 int bpobj_iterate(bpobj_t *bpo, bpobj_itor_t func, void *arg, dmu_tx_t *tx); 80 int bpobj_iterate_nofree(bpobj_t *bpo, bpobj_itor_t func, void *, dmu_tx_t *); 82 void bpobj_enqueue_subobj(bpobj_t *bpo, uint64_t subobj, dmu_tx_t *tx); 83 void bpobj_enqueue(bpobj_t *bpo, const blkptr_t *bp, dmu_tx_t *tx);
|
H A D | dsl_deadlist.h | 68 uint64_t dsl_deadlist_alloc(objset_t *os, dmu_tx_t *tx); 69 void dsl_deadlist_free(objset_t *os, uint64_t dlobj, dmu_tx_t *tx); 70 void dsl_deadlist_insert(dsl_deadlist_t *dl, const blkptr_t *bp, dmu_tx_t *tx); 71 void dsl_deadlist_add_key(dsl_deadlist_t *dl, uint64_t mintxg, dmu_tx_t *tx); 72 void dsl_deadlist_remove_key(dsl_deadlist_t *dl, uint64_t mintxg, dmu_tx_t *tx); 74 uint64_t mrs_obj, dmu_tx_t *tx); 80 void dsl_deadlist_merge(dsl_deadlist_t *dl, uint64_t obj, dmu_tx_t *tx); 82 dmu_tx_t *tx);
|
H A D | dsl_dir.h | 137 const char *name, dmu_tx_t *tx); 157 void dsl_dir_dirty(dsl_dir_t *dd, dmu_tx_t *tx); 158 void dsl_dir_sync(dsl_dir_t *dd, dmu_tx_t *tx); 160 uint64_t asize, boolean_t netfree, void **tr_cookiep, dmu_tx_t *tx); 161 void dsl_dir_tempreserve_clear(void *tr_cookie, dmu_tx_t *tx); 162 void dsl_dir_willuse_space(dsl_dir_t *dd, int64_t space, dmu_tx_t *tx); 164 int64_t used, int64_t compressed, int64_t uncompressed, dmu_tx_t *tx); 166 dd_used_t oldtype, dd_used_t newtype, dmu_tx_t *tx); 174 void dsl_fs_ss_count_adjust(dsl_dir_t *, int64_t, const char *, dmu_tx_t *); 181 uint64_t reservation, cred_t *cr, dmu_tx_t *tx); [all …]
|
H A D | dsl_synctask.h | 38 typedef int (dsl_checkfunc_t)(void *, dmu_tx_t *); 39 typedef void (dsl_syncfunc_t)(void *, dmu_tx_t *); 40 typedef void (dsl_sigfunc_t)(void *, dmu_tx_t *); 111 void dsl_sync_task_sync(dsl_sync_task_t *, dmu_tx_t *); 115 void *, int, zfs_space_check_t, dmu_tx_t *); 119 void *, int, zfs_space_check_t, dmu_tx_t *);
|
H A D | zfs_znode.h | 309 dmu_tx_t *tx); 312 extern void zfs_grow_blocksize(znode_t *, uint64_t, dmu_tx_t *); 319 extern void zfs_znode_delete(znode_t *, dmu_tx_t *); 330 extern void zfs_log_create(zilog_t *zilog, dmu_tx_t *tx, uint64_t txtype, 335 extern void zfs_log_remove(zilog_t *zilog, dmu_tx_t *tx, uint64_t txtype, 338 extern void zfs_log_link(zilog_t *zilog, dmu_tx_t *tx, uint64_t txtype, 340 extern void zfs_log_symlink(zilog_t *zilog, dmu_tx_t *tx, uint64_t txtype, 342 extern void zfs_log_rename(zilog_t *zilog, dmu_tx_t *tx, uint64_t txtype, 344 extern void zfs_log_write(zilog_t *zilog, dmu_tx_t *tx, int txtype, 346 extern void zfs_log_truncate(zilog_t *zilog, dmu_tx_t *tx, int txtype, [all …]
|
H A D | sa.h | 115 typedef void (sa_update_cb_t)(sa_handle_t *, dmu_tx_t *tx); 126 uint32_t buflen, dmu_tx_t *); 127 int sa_remove(sa_handle_t *, sa_attr_type_t, dmu_tx_t *); 130 int sa_bulk_update(sa_handle_t *, sa_bulk_attr_t *, int count, dmu_tx_t *); 133 uint32_t buflen, sa_data_locator_t *, void *userdata, dmu_tx_t *); 145 int, dmu_tx_t *); 147 int, dmu_tx_t *); 158 int sa_add_projid(sa_handle_t *, dmu_tx_t *, uint64_t);
|
H A D | zfs_sa.h | 133 void zfs_sa_symlink(struct znode *, char *link, int len, dmu_tx_t *); 134 void zfs_sa_upgrade(struct sa_handle *, dmu_tx_t *); 136 void zfs_sa_set_scanstamp(struct znode *, xvattr_t *, dmu_tx_t *); 137 void zfs_sa_uprade_pre(struct sa_handle *, void *, dmu_tx_t *); 138 void zfs_sa_upgrade_post(struct sa_handle *, void *, dmu_tx_t *); 139 void zfs_sa_upgrade_txholds(dmu_tx_t *, struct znode *);
|
H A D | dsl_crypt.h | 200 nvlist_t *nvl, dmu_tx_t *tx); 202 nvlist_t *nvl, dmu_tx_t *tx); 207 int spa_keystore_change_key_check(void *arg, dmu_tx_t *tx); 208 void spa_keystore_change_key_sync(void *arg, dmu_tx_t *tx); 212 dmu_tx_t *tx); 216 struct dsl_dataset *origin, dsl_crypto_params_t *dcp, dmu_tx_t *tx); 218 dmu_tx_t *tx); 219 uint64_t dsl_crypto_key_clone_sync(dsl_dir_t *origindd, dmu_tx_t *tx); 220 void dsl_crypto_key_destroy_sync(uint64_t dckobj, dmu_tx_t *tx);
|
H A D | bptree.h | 49 typedef int bptree_itor_t(void *arg, const blkptr_t *bp, dmu_tx_t *tx); 51 uint64_t bptree_alloc(objset_t *os, dmu_tx_t *tx); 52 int bptree_free(objset_t *os, uint64_t obj, dmu_tx_t *tx); 56 uint64_t bytes, uint64_t comp, uint64_t uncomp, dmu_tx_t *tx); 59 bptree_itor_t func, void *arg, dmu_tx_t *tx);
|
H A D | dsl_pool.h | 157 void dsl_pool_dirty_space(dsl_pool_t *dp, int64_t space, dmu_tx_t *tx); 162 void dsl_pool_create_origin(dsl_pool_t *dp, dmu_tx_t *tx); 163 void dsl_pool_upgrade_clones(dsl_pool_t *dp, dmu_tx_t *tx); 164 void dsl_pool_upgrade_dir_clones(dsl_pool_t *dp, dmu_tx_t *tx); 180 const char *tag, uint64_t now, dmu_tx_t *tx); 182 const char *tag, dmu_tx_t *tx); 188 void dsl_pool_create_obsolete_bpobj(dsl_pool_t *dp, dmu_tx_t *tx); 189 void dsl_pool_destroy_obsolete_bpobj(dsl_pool_t *dp, dmu_tx_t *tx);
|
H A D | dbuf.h | 317 int dbuf_spill_set_blksz(dmu_buf_t *db, uint64_t blksz, dmu_tx_t *tx); 320 void dbuf_rm_spill(struct dnode *dn, dmu_tx_t *tx); 347 void dmu_buf_will_not_fill(dmu_buf_t *db, dmu_tx_t *tx); 348 void dmu_buf_will_fill(dmu_buf_t *db, dmu_tx_t *tx); 349 void dmu_buf_fill_done(dmu_buf_t *db, dmu_tx_t *tx); 350 void dbuf_assign_arcbuf(dmu_buf_impl_t *db, arc_buf_t *buf, dmu_tx_t *tx); 351 dbuf_dirty_record_t *dbuf_dirty(dmu_buf_impl_t *db, dmu_tx_t *tx); 355 int uncompressed_size, int compressed_size, int byteorder, dmu_tx_t *tx); 359 void dbuf_setdirty(dmu_buf_impl_t *db, dmu_tx_t *tx); 361 void dbuf_sync_list(list_t *list, int level, dmu_tx_t *tx); [all …]
|
H A D | dsl_destroy.h | 54 int dsl_destroy_snapshot_check(void *, dmu_tx_t *); 55 void dsl_destroy_snapshot_sync(void *, dmu_tx_t *); 61 int dsl_destroy_head_check(void *, dmu_tx_t *); 62 void dsl_destroy_head_sync(void *, dmu_tx_t *);
|
H A D | dnode.h | 387 void dnode_setbonuslen(dnode_t *dn, int newsize, dmu_tx_t *tx); 388 void dnode_setbonus_type(dnode_t *dn, dmu_object_type_t, dmu_tx_t *tx); 389 void dnode_rm_spill(dnode_t *dn, dmu_tx_t *tx); 399 void dnode_setdirty(dnode_t *dn, dmu_tx_t *tx); 400 void dnode_sync(dnode_t *dn, dmu_tx_t *tx); 402 dmu_object_type_t bonustype, int bonuslen, int dn_slots, dmu_tx_t *tx); 405 boolean_t keep_spill, dmu_tx_t *tx); 406 void dnode_free(dnode_t *dn, dmu_tx_t *tx); 410 int dnode_set_nlevels(dnode_t *dn, int nlevels, dmu_tx_t *tx); 411 int dnode_set_blksz(dnode_t *dn, uint64_t size, int ibs, dmu_tx_t *tx); [all …]
|
H A D | space_map.h | 207 dmu_tx_t *tx); 212 dmu_tx_t *tx); 221 uint64_t vdev_id, dmu_tx_t *tx); 224 void space_map_truncate(space_map_t *sm, int blocksize, dmu_tx_t *tx); 225 uint64_t space_map_alloc(objset_t *os, int blocksize, dmu_tx_t *tx); 226 void space_map_free(space_map_t *sm, dmu_tx_t *tx); 227 void space_map_free_obj(objset_t *os, uint64_t smobj, dmu_tx_t *tx);
|
H A D | zfs_dir.h | 54 extern int zfs_link_create(zfs_dirlock_t *, znode_t *, dmu_tx_t *, int); 55 extern int zfs_link_destroy(zfs_dirlock_t *, znode_t *, dmu_tx_t *, int, 59 extern void zfs_mknode(znode_t *, vattr_t *, dmu_tx_t *, cred_t *, 64 extern void zfs_unlinked_add(znode_t *, dmu_tx_t *);
|
H A D | zap_impl.h | 202 int zap_lockdir(objset_t *os, uint64_t obj, dmu_tx_t *tx, 221 const void *val, void *tag, dmu_tx_t *tx); 224 void *tag, dmu_tx_t *tx); 227 int fzap_remove(zap_name_t *zn, dmu_tx_t *tx); 234 const void *val, uint32_t cd, void *tag, dmu_tx_t *tx); 235 void fzap_upgrade(zap_t *zap, dmu_tx_t *tx, zap_flags_t flags);
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dmu_tx.c | 43 typedef void (*dmu_tx_hold_func_t)(dmu_tx_t *tx, struct dnode *dn, 47 dmu_tx_t * 50 dmu_tx_t *tx = kmem_zalloc(sizeof (dmu_tx_t), KM_SLEEP); in dmu_tx_create_dd() 62 dmu_tx_t * 65 dmu_tx_t *tx = dmu_tx_create_dd(os->os_dsl_dataset->ds_dir); in dmu_tx_create() 70 dmu_tx_t * 73 dmu_tx_t *tx = dmu_tx_create_dd(NULL); in dmu_tx_create_assigned() 84 dmu_tx_is_syncing(dmu_tx_t *tx) in dmu_tx_is_syncing() 90 dmu_tx_private_ok(dmu_tx_t *tx) in dmu_tx_private_ok() 96 dmu_tx_hold_dnode_impl(dmu_tx_t *tx, dnode_t *dn, enum dmu_tx_hold_type type, in dmu_tx_hold_dnode_impl() [all …]
|
H A D | dmu_object.c | 48 int dnodesize, dmu_tx_t *tx) in dmu_object_alloc_impl() 202 dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx) in dmu_object_alloc() 211 dmu_tx_t *tx) in dmu_object_alloc_ibs() 219 dmu_object_type_t bonustype, int bonuslen, int dnodesize, dmu_tx_t *tx) in dmu_object_alloc_dnsize() 227 int blocksize, dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx) in dmu_object_claim() 236 int dnodesize, dmu_tx_t *tx) in dmu_object_claim_dnsize() 264 int blocksize, dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx) in dmu_object_reclaim() 273 boolean_t keep_spill, dmu_tx_t *tx) in dmu_object_reclaim_dnsize() 298 dmu_object_rm_spill(objset_t *os, uint64_t object, dmu_tx_t *tx) in dmu_object_rm_spill() 320 dmu_object_free(objset_t *os, uint64_t object, dmu_tx_t *tx) in dmu_object_free() [all …]
|
H A D | dsl_deadlist.c | 156 dsl_deadlist_alloc(objset_t *os, dmu_tx_t *tx) in dsl_deadlist_alloc() 165 dsl_deadlist_free(objset_t *os, uint64_t dlobj, dmu_tx_t *tx) in dsl_deadlist_free() 192 const blkptr_t *bp, dmu_tx_t *tx) in dle_enqueue() 209 uint64_t obj, dmu_tx_t *tx) in dle_enqueue_subobj() 225 dsl_deadlist_insert(dsl_deadlist_t *dl, const blkptr_t *bp, dmu_tx_t *tx) in dsl_deadlist_insert() 260 dsl_deadlist_add_key(dsl_deadlist_t *dl, uint64_t mintxg, dmu_tx_t *tx) in dsl_deadlist_add_key() 287 dsl_deadlist_remove_key(dsl_deadlist_t *dl, uint64_t mintxg, dmu_tx_t *tx) in dsl_deadlist_remove_key() 317 uint64_t mrs_obj, dmu_tx_t *tx) in dsl_deadlist_regenerate() 341 uint64_t mrs_obj, dmu_tx_t *tx) in dsl_deadlist_clone() 438 dmu_tx_t *tx) in dsl_deadlist_insert_bpobj() [all …]
|
H A D | dsl_synctask.c | 37 dsl_null_checkfunc(void *arg, dmu_tx_t *tx) in dsl_null_checkfunc() 48 dmu_tx_t *tx; in dsl_sync_task_common() 173 int blocks_modified, zfs_space_check_t space_check, dmu_tx_t *tx, in dsl_sync_task_nowait_common() 195 int blocks_modified, zfs_space_check_t space_check, dmu_tx_t *tx) in dsl_sync_task_nowait() 203 int blocks_modified, zfs_space_check_t space_check, dmu_tx_t *tx) in dsl_early_sync_task_nowait() 213 dsl_sync_task_sync(dsl_sync_task_t *dst, dmu_tx_t *tx) in dsl_sync_task_sync()
|
H A D | zap.c | 102 fzap_upgrade(zap_t *zap, dmu_tx_t *tx, zap_flags_t flags) in fzap_upgrade() 153 zap_tryupgradedir(zap_t *zap, dmu_tx_t *tx) in zap_tryupgradedir() 171 dmu_tx_t *tx) in zap_table_grow() 246 dmu_tx_t *tx) in zap_table_store() 349 zap_grow_ptrtbl(zap_t *zap, dmu_tx_t *tx) in zap_grow_ptrtbl() 398 zap_increment_num_entries(zap_t *zap, int delta, dmu_tx_t *tx) in zap_increment_num_entries() 426 zap_create_leaf(zap_t *zap, dmu_tx_t *tx) in zap_create_leaf() 519 zap_get_leaf_byblk(zap_t *zap, uint64_t blkid, dmu_tx_t *tx, krw_t lt, in zap_get_leaf_byblk() 577 zap_set_idx_to_blk(zap_t *zap, uint64_t idx, uint64_t blk, dmu_tx_t *tx) in zap_set_idx_to_blk() 592 zap_deref_leaf(zap_t *zap, uint64_t h, dmu_tx_t *tx, krw_t lt, zap_leaf_t **lp) in zap_deref_leaf() [all …]
|