Home
last modified time | relevance | path

Searched refs:dnode_t (Results 1 – 25 of 46) sorted by relevance

12

/freebsd/sys/contrib/openzfs/include/sys/
H A Dzap.h140 dnode_t **allocated_dnode, const void *tag, dmu_tx_t *tx);
155 void mzap_create_impl(dnode_t *dn, int normflags, zap_flags_t flags,
215 int zap_lookup_by_dnode(dnode_t *dn, const char *name,
230 int zap_lookup_norm_by_dnode(dnode_t *dn, const char *name,
241 int zap_lookup_uint64_by_dnode(dnode_t *dn, const uint64_t *key,
243 int zap_lookup_length_uint64_by_dnode(dnode_t *dn, const uint64_t *key,
252 int zap_contains_by_dnode(dnode_t *dn, const char *name);
263 int zap_prefetch_uint64_by_dnode(dnode_t *dn, const uint64_t *key,
281 int zap_add_by_dnode(dnode_t *dn, const char *key,
289 int zap_add_uint64_by_dnode(dnode_t *dn, const uint64_t *key,
[all …]
H A Ddnode.h392 dnode_t *dnh_dnode;
411 void dnode_setbonuslen(dnode_t *dn, int newsize, dmu_tx_t *tx);
412 void dnode_setbonus_type(dnode_t *dn, dmu_object_type_t, dmu_tx_t *tx);
413 void dnode_rm_spill(dnode_t *dn, dmu_tx_t *tx);
416 const void *ref, dnode_t **dnp);
418 const void *ref, dnode_t **dnp);
419 boolean_t dnode_add_ref(dnode_t *dn, const void *ref);
420 void dnode_rele(dnode_t *dn, const void *ref);
421 void dnode_rele_and_unlock(dnode_t *dn, const void *tag, boolean_t evicting);
423 boolean_t dnode_is_dirty(dnode_t *dn);
[all …]
H A Dddt_impl.h140 dnode_t *dlu_dn; /* log object dnode */
156 int (*ddt_op_lookup)(dnode_t *dn, const ddt_key_t *ddk,
158 int (*ddt_op_contains)(dnode_t *dn, const ddt_key_t *ddk);
159 void (*ddt_op_prefetch)(dnode_t *dn, const ddt_key_t *ddk);
160 void (*ddt_op_prefetch_all)(dnode_t *dn);
161 int (*ddt_op_update)(dnode_t *dn, const ddt_key_t *ddk,
163 int (*ddt_op_remove)(dnode_t *dn, const ddt_key_t *ddk,
165 int (*ddt_op_walk)(dnode_t *dn, uint64_t *walk, ddt_key_t *ddk,
167 int (*ddt_op_count)(dnode_t *dn, uint64_t *count);
H A Ddmu_impl.h261 int dmu_read_abd(dnode_t *, uint64_t, uint64_t, abd_t *, dmu_flags_t);
262 int dmu_write_abd(dnode_t *, uint64_t, uint64_t, abd_t *, dmu_flags_t,
265 int dmu_read_uio_direct(dnode_t *, zfs_uio_t *, uint64_t, dmu_flags_t);
266 int dmu_write_uio_direct(dnode_t *, zfs_uio_t *, uint64_t, dmu_flags_t,
H A Ddmu.h74 typedef struct dnode dnode_t; typedef
436 int bonuslen, int dnodesize, dnode_t **allocated_dnode, const void *tag,
545 void dmu_write_policy(objset_t *os, dnode_t *dn, int level, int wp,
583 int dmu_bonus_hold_by_dnode(dnode_t *dn, const void *tag, dmu_buf_t **dbp,
597 int dmu_spill_hold_by_dnode(dnode_t *dn, dmu_flags_t flags,
622 int dmu_buf_hold_by_dnode(dnode_t *dn, uint64_t offset,
624 int dmu_buf_hold_array_by_dnode(dnode_t *dn, uint64_t offset,
627 int dmu_buf_hold_noread_by_dnode(dnode_t *dn, uint64_t offset, const void *tag,
847 void dmu_tx_hold_write_by_dnode(dmu_tx_t *tx, dnode_t *dn, uint64_t off,
850 void dmu_tx_hold_append_by_dnode(dmu_tx_t *tx, dnode_t *dn, uint64_t off,
[all …]
H A Ddbuf.h123 dnode_t *dr_dnode;
379 dbuf_dirty_record_t *dbuf_dirty_lightweight(dnode_t *dn, uint64_t blkid,
388 int dmu_lightweight_write_by_dnode(dnode_t *dn, uint64_t offset, abd_t *abd,
412 int dbuf_dnode_findbp(dnode_t *dn, uint64_t level, uint64_t blkid,
H A Dzap_impl.h140 dnode_t *zap_dnode;
245 int zap_lock_by_dnode(dnode_t *dn, dmu_tx_t *tx,
H A Dbrt_impl.h106 dnode_t *bv_mos_entries_dnode;
H A Ddmu_tx.h162 void dmu_tx_add_new_object(dmu_tx_t *tx, dnode_t *dn);
H A Dzvol_impl.h40 dnode_t *zv_dn; /* dnode hold */
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dzap.c36 dnode_t **allocated_dnode, const void *tag, dmu_tx_t *tx) in zap_create_impl()
43 dnode_t *dn; in zap_create_impl()
115 dnode_t **allocated_dnode, const void *tag, dmu_tx_t *tx) in zap_create_hold()
177 dnode_t *dn; in zap_create_claim_norm_dnsize()
214 zap_lookup_norm_by_dnode(dnode_t *dn, const char *name, in zap_lookup_norm_by_dnode()
273 zap_lookup_by_dnode(dnode_t *dn, const char *name, in zap_lookup_by_dnode()
286 dnode_t *dn; in zap_lookup_norm()
299 zap_lookup_length_uint64_by_dnode(dnode_t *dn, const uint64_t *key, in zap_lookup_length_uint64_by_dnode()
326 dnode_t *dn; in zap_lookup_uint64()
337 zap_lookup_uint64_by_dnode(dnode_t *dn, const uint64_t *key, in zap_lookup_uint64_by_dnode()
[all …]
H A Dddt_zap.c115 ddt_zap_lookup(dnode_t *dn, const ddt_key_t *ddk, void *phys, size_t psize) in ddt_zap_lookup()
136 ddt_zap_contains(dnode_t *dn, const ddt_key_t *ddk) in ddt_zap_contains()
143 ddt_zap_prefetch(dnode_t *dn, const ddt_key_t *ddk) in ddt_zap_prefetch()
150 ddt_zap_prefetch_all(dnode_t *dn) in ddt_zap_prefetch_all()
156 ddt_zap_update(dnode_t *dn, const ddt_key_t *ddk, in ddt_zap_update()
174 ddt_zap_remove(dnode_t *dn, const ddt_key_t *ddk, dmu_tx_t *tx) in ddt_zap_remove()
181 ddt_zap_walk(dnode_t *dn, uint64_t *walk, ddt_key_t *ddk, in ddt_zap_walk()
228 ddt_zap_count(dnode_t *dn, uint64_t *count) in ddt_zap_count()
H A Ddnode.c80 rt_name(dnode_t *dn, const char *name) in rt_name()
129 dnode_t *dn = arg; in dnode_cons()
192 dnode_t *dn = arg; in dnode_dest()
308 dnode_cache = kmem_cache_create("dnode_t", sizeof (dnode_t), in dnode_init()
395 dnode_verify(dnode_t *dn) in dnode_verify()
511 dnode_setbonuslen(dnode_t *dn, int newsize, dmu_tx_t *tx) in dnode_setbonuslen()
536 dnode_setbonus_type(dnode_t *dn, dmu_object_type_t newtype, dmu_tx_t *tx) in dnode_setbonus_type()
547 dnode_set_storage_type(dnode_t *dn, dmu_object_type_t newtype) in dnode_set_storage_type()
558 dnode_rm_spill(dnode_t *dn, dmu_tx_t *tx) in dnode_rm_spill()
568 dnode_setdblksz(dnode_t *dn, int size) in dnode_setdblksz()
[all …]
H A Ddmu.c167 dmu_buf_hold_noread_by_dnode(dnode_t *dn, uint64_t offset, in dmu_buf_hold_noread_by_dnode()
191 dnode_t *dn; in dmu_buf_hold_noread()
215 dmu_buf_hold_by_dnode(dnode_t *dn, uint64_t offset, in dmu_buf_hold_by_dnode()
262 dnode_t *dn; in dmu_set_bonus()
286 dnode_t *dn; in dmu_set_bonustype()
322 dnode_t *dn; in dmu_rm_spill()
339 int dmu_bonus_hold_by_dnode(dnode_t *dn, const void *tag, dmu_buf_t **dbp, in dmu_bonus_hold_by_dnode()
384 dnode_t *dn; in dmu_bonus_hold()
407 dmu_spill_hold_by_dnode(dnode_t *dn, dmu_flags_t flags, const void *tag, in dmu_spill_hold_by_dnode()
439 dnode_t *dn; in dmu_spill_hold_existing()
[all …]
H A Ddmu_object.c40 int dnodesize, dnode_t **allocated_dnode, const void *tag, dmu_tx_t *tx) in dmu_object_alloc_impl()
45 dnode_t *dn = NULL; in dmu_object_alloc_impl()
249 int dnodesize, dnode_t **allocated_dnode, const void *tag, dmu_tx_t *tx) in dmu_object_alloc_hold()
268 dnode_t *dn; in dmu_object_claim_dnsize()
306 dnode_t *dn; in dmu_object_reclaim_dnsize()
331 dnode_t *dn; in dmu_object_rm_spill()
353 dnode_t *dn; in dmu_object_free()
452 dnode_t *dn; in dmu_object_zapify()
483 dnode_t *dn; in dmu_object_free_zapified()
H A Ddmu_tx.c106 dmu_tx_hold_dnode_impl(dmu_tx_t *tx, dnode_t *dn, enum dmu_tx_hold_type type, in dmu_tx_hold_dnode_impl()
144 dnode_t *dn = NULL; in dmu_tx_hold_object_impl()
162 dmu_tx_add_new_object(dmu_tx_t *tx, dnode_t *dn) in dmu_tx_add_new_object()
201 dmu_tx_check_ioerr(zio_t *zio, dnode_t *dn, int level, uint64_t blkid) in dmu_tx_check_ioerr()
227 dnode_t *dn = txh->txh_dnode; in dmu_tx_count_write()
297 dnode_t *dn = txh->txh_dnode; in dmu_tx_count_append()
366 dmu_tx_hold_write_by_dnode(dmu_tx_t *tx, dnode_t *dn, uint64_t off, int len) in dmu_tx_hold_write_by_dnode()
403 dmu_tx_hold_append_by_dnode(dmu_tx_t *tx, dnode_t *dn, uint64_t off, int len) in dmu_tx_hold_append_by_dnode()
435 dnode_t *dn = txh->txh_dnode; in dmu_tx_count_free()
531 dmu_tx_hold_free_by_dnode(dmu_tx_t *tx, dnode_t *dn, uint64_t off, uint64_t len) in dmu_tx_hold_free_by_dnode()
[all …]
H A Ddnode_sync.c33 dnode_increase_indirection(dnode_t *dn, dmu_tx_t *tx) in dnode_increase_indirection()
125 free_blocks(dnode_t *dn, blkptr_t *bp, int num, dmu_tx_t *tx) in free_blocks()
173 dnode_t *dn; in free_verify()
267 dnode_t *dn; in free_children()
365 dnode_sync_free_range_impl(dnode_t *dn, uint64_t blkid, uint64_t nblks, in dnode_sync_free_range_impl()
440 dnode_evict_dbufs(dnode_t *dn) in dnode_evict_dbufs()
504 dnode_evict_bonus(dnode_t *dn) in dnode_evict_bonus()
552 dnode_sync_free(dnode_t *dn, dmu_tx_t *tx) in dnode_sync_free()
637 dnode_sync_free_ranges(dnode_t *dn, dmu_tx_t *tx) in dnode_sync_free_ranges()
675 dnode_sync(dnode_t *dn, dmu_tx_t *tx) in dnode_sync()
H A Ddbuf.c364 dnode_t *dn; in dbuf_find_bonus()
439 dnode_t *dn = DB_DNODE(db); in dbuf_include_in_metadata_cache()
660 dnode_level_is_l2cacheable(blkptr_t *bp, dnode_t *dn, int64_t level) in dnode_level_is_l2cacheable()
1110 dnode_t *dn; in dbuf_verify()
1286 dbuf_whichblock(const dnode_t *dn, const int64_t level, const uint64_t offset) in dbuf_whichblock()
1415 dbuf_read_bonus(dmu_buf_impl_t *db, dnode_t *dn) in dbuf_read_bonus()
1438 dbuf_handle_indirect_hole(void *data, dnode_t *dn, blkptr_t *dbbp) in dbuf_handle_indirect_hole()
1462 dbuf_read_hole(dmu_buf_impl_t *db, dnode_t *dn, blkptr_t *bp) in dbuf_read_hole()
1518 dbuf_read_verify_dnode_crypt(dmu_buf_impl_t *db, dnode_t *dn, in dbuf_read_verify_dnode_crypt()
1581 dbuf_read_impl(dmu_buf_impl_t *db, dnode_t *dn, zio_t *zio, dmu_flags_t flags, in dbuf_read_impl()
[all …]
H A Ddmu_direct.c206 dmu_write_abd(dnode_t *dn, uint64_t offset, uint64_t size, in dmu_write_abd()
245 dmu_read_abd(dnode_t *dn, uint64_t offset, uint64_t size, in dmu_read_abd()
350 dmu_read_uio_direct(dnode_t *dn, zfs_uio_t *uio, uint64_t size, in dmu_read_uio_direct()
372 dmu_write_uio_direct(dnode_t *dn, zfs_uio_t *uio, uint64_t size, in dmu_write_uio_direct()
H A Ddmu_objset.c407 dnode_t *dn = obj; in dnode_multilist_index_func()
657 multilist_create(&os->os_dirty_dnodes[i], sizeof (dnode_t), in dmu_objset_open_impl()
658 offsetof(dnode_t, dn_dirty_link[i]), in dmu_objset_open_impl()
661 list_create(&os->os_dnodes, sizeof (dnode_t), in dmu_objset_open_impl()
662 offsetof(dnode_t, dn_link)); in dmu_objset_open_impl()
937 dnode_t *dn_marker; in dmu_objset_evict_dbufs()
938 dnode_t *dn; in dmu_objset_evict_dbufs()
940 dn_marker = kmem_alloc(sizeof (dnode_t), KM_SLEEP); in dmu_objset_evict_dbufs()
966 kmem_free(dn_marker, sizeof (dnode_t)); in dmu_objset_evict_dbufs()
1068 dnode_t *mdn; in dmu_objset_create_impl_dnstats()
[all …]
H A Dzap_impl.c279 zap_lock_impl(dnode_t *dn, dmu_buf_t *db, dmu_tx_t *tx, in zap_lock_impl()
378 zap_lock_by_dnode(dnode_t *dn, dmu_tx_t *tx, in zap_lock_by_dnode()
401 dnode_t *dn; in zap_lock()
H A Dddt.c437 dnode_t *dn = ddt->ddt_object_dnode[type][class]; in ddt_object_destroy()
544 dnode_t *dn = ddt->ddt_object_dnode[type][class]; in ddt_object_lookup()
570 dnode_t *dn = ddt->ddt_object_dnode[type][class]; in ddt_object_contains()
587 dnode_t *dn = ddt->ddt_object_dnode[type][class]; in ddt_object_prefetch()
603 dnode_t *dn = ddt->ddt_object_dnode[type][class]; in ddt_object_prefetch_all()
614 dnode_t *dn = ddt->ddt_object_dnode[type][class]; in ddt_object_update()
625 dnode_t *dn = ddt->ddt_object_dnode[type][class]; in ddt_object_remove()
641 dnode_t *dn = ddt->ddt_object_dnode[type][class]; in ddt_object_walk()
668 dnode_t *dn = ddt->ddt_object_dnode[type][class]; in ddt_object_count()
/freebsd/sys/contrib/openzfs/tests/unit/
H A Dtest_zap.c55 static dnode_t *
63 dnode_t *dn = (dnode_t *)mdn; in mock_zap_create_norm_microzap()
71 static dnode_t *
78 dnode_t *dn = mock_zap_create_norm_microzap(normflags); in mock_zap_create_norm_fatzap()
92 mock_zap_is_microzap(dnode_t *dn) in mock_zap_is_microzap()
100 mock_zap_is_fatzap(dnode_t *dn) in mock_zap_is_fatzap()
108 mock_zap_destroy(dnode_t *dn) in mock_zap_destroy()
116 static dnode_t *
140 mock_zap_is_params(dnode_t *dn, const MunitParameter params[], in mock_zap_is_params()
167 dnode_t *dn = mock_zap_create_microzap(); in test_mock_microzap_sanity()
[all …]
H A Dmock_dmu.c51 dnode_t mdn_dn;
185 dmu_buf_hold_by_dnode(dnode_t *dn, uint64_t offset, const void *tag, in dmu_buf_hold_by_dnode()
268 dnode_add_ref(dnode_t *dn, const void *tag) in dnode_add_ref()
279 dnode_rele(dnode_t *dn, const void *tag) in dnode_rele()
308 dmu_prefetch_by_dnode(dnode_t *dn, int64_t level, uint64_t offset, in dmu_prefetch_by_dnode()
361 dnode_hold(objset_t *os, uint64_t object, const void *tag, dnode_t **dnp) in dnode_hold()
377 int bonuslen, int dnodesize, dnode_t **allocated_dnode, in dmu_object_alloc_hold()
/freebsd/sys/contrib/openzfs/include/os/linux/zfs/sys/
H A Dtrace_dnode.h38 TP_PROTO(dnode_t *dn, int64_t refcount, uint32_t dbufs),
101 TP_PROTO(dnode_t *dn, int64_t refcount, uint32_t dbufs), \

12