| /f-stack/freebsd/contrib/openzfs/module/zfs/ |
| H A D | dnode_sync.c | 57 db = dbuf_hold_level(dn, dn->dn_phys->dn_nlevels, 0, FTAG); in dnode_increase_indirection() 62 dn->dn_object, dn->dn_phys->dn_nlevels); in dnode_increase_indirection() 74 dbuf_find(dn->dn_objset, dn->dn_object, old_toplvl, i); in dnode_increase_indirection() 180 dnode_t *dn; in free_verify() local 183 dn = DB_DNODE(db); in free_verify() 268 dnode_t *dn; in free_children() local 597 if (dn->dn_allocated_txg != dn->dn_free_txg) in dnode_sync_free() 599 bzero(dn->dn_phys, sizeof (dnode_phys_t) * dn->dn_num_slots); in dnode_sync_free() 649 dn->dn_oldused = DN_USED_BYTES(dn->dn_phys); in dnode_sync() 650 dn->dn_oldflags = dn->dn_phys->dn_flags; in dnode_sync() [all …]
|
| H A D | dnode.c | 138 bzero(&dn->dn_next_blksz[0], sizeof (dn->dn_next_blksz)); in dnode_cons() 267 ASSERT(dn->dn_handle->dnh_dnode == dn); in dnode_verify() 298 ASSERT3U(dn->dn_next_nlevels[i], <=, dn->dn_nlevels); in dnode_verify() 302 ASSERT3U(dn->dn_phys->dn_nlevels, <=, dn->dn_nlevels); in dnode_verify() 448 dnode_t *dn; in dnode_create() local 482 dmu_zfetch_init(&dn->dn_zfetch, dn); in dnode_create() 741 ASSERT(dn->dn_bonuslen <= dn->dn_bonus->db.db_size); in dnode_reallocate() 1181 cv_wait(&dn->dn_nodnholds, &dn->dn_mtx); in dnode_special_close() 1566 *dnp = dn; in dnode_hold_impl() 1725 if (dn->dn_type == DMU_OT_NONE || dn->dn_free_txg) { in dnode_free() [all …]
|
| H A D | dmu.c | 181 dnode_t *dn; in dmu_buf_hold_noread() local 264 dnode_t *dn; in dmu_set_bonus() local 287 dnode_t *dn; in dmu_set_bonustype() local 310 dnode_t *dn; in dmu_get_bonustype() local 324 dnode_t *dn; in dmu_rm_spill() local 390 dnode_t *dn; in dmu_bonus_hold() local 444 dnode_t *dn; in dmu_spill_hold_existing() local 474 dnode_t *dn; in dmu_spill_hold_by_bonus() local 526 (longlong_t)dn->dn_object, dn->dn_datablksz, in dmu_buf_hold_array_by_dnode() 599 dnode_t *dn; in dmu_buf_hold_array() local [all …]
|
| H A D | dmu_tx.c | 116 if (dn != NULL) { in dmu_tx_hold_dnode_impl() 149 dnode_t *dn = NULL; in dmu_tx_hold_object_impl() local 161 if (dn != NULL) in dmu_tx_hold_object_impl() 233 if (dn == NULL) in dmu_tx_count_write() 256 if (P2PHASE(off, dn->dn_datablksz) || len < dn->dn_datablksz) { in dmu_tx_count_write() 357 if (off >= (dn->dn_maxblkid + 1) * dn->dn_datablksz) in dmu_tx_hold_free_impl() 360 len = (dn->dn_maxblkid + 1) * dn->dn_datablksz - off; in dmu_tx_hold_free_impl() 389 int shift = dn->dn_datablkshift + dn->dn_indblkshift - in dmu_tx_hold_free_impl() 480 if (dn == NULL) in dmu_tx_hold_zap_impl() 1098 cv_wait(&dn->dn_notxholds, &dn->dn_mtx); in dmu_tx_wait() [all …]
|
| H A D | dmu_object.c | 277 dnode_t *dn; in dmu_object_claim_dnsize() local 290 FTAG, &dn); in dmu_object_claim_dnsize() 315 dnode_t *dn; in dmu_object_reclaim_dnsize() local 326 FTAG, &dn); in dmu_object_reclaim_dnsize() 340 dnode_t *dn; in dmu_object_rm_spill() local 344 FTAG, &dn); in dmu_object_rm_spill() 362 dnode_t *dn; in dmu_object_free() local 368 FTAG, &dn); in dmu_object_free() 459 dnode_t *dn; in dmu_object_zapify() local 478 dn->dn_next_type[tx->tx_txg & TXG_MASK] = dn->dn_type = in dmu_object_zapify() [all …]
|
| H A D | dbuf.c | 351 dnode_t *dn; in dbuf_find_bonus() local 921 dnode_t *dn; in dbuf_verify() local 1395 dnode_t *dn; in dbuf_read_verify_dnode_crypt() local 1441 dnode_t *dn; in dbuf_read_impl() local 1592 dnode_t *dn; in dbuf_read() local 1895 dnode_t *dn; in dbuf_new_size() local 2047 dnode_t *dn; in dbuf_dirty() local 2730 dnode_t *dn; in dbuf_destroy() local 3520 dn->dn_bonus = dbuf_create(dn, 0, DMU_BONUS_BLKID, dn->dn_dbuf, NULL); in dbuf_create_bonus() 4361 dnode_t *dn; in dbuf_write_ready() local [all …]
|
| H A D | dmu_objset.c | 908 dn = list_next(&os->os_dnodes, dn); in dmu_objset_evict_dbufs() 1976 dn->dn_oldflags, dn->dn_olduid, dn->dn_oldgid, in userquota_updates_task() 1979 dn->dn_olduid, dn->dn_oldgid, in userquota_updates_task() 1985 dn->dn_newuid, dn->dn_newgid, in userquota_updates_task() 1988 dn->dn_phys->dn_flags, dn->dn_newuid, dn->dn_newgid, in userquota_updates_task() 1996 dn->dn_olduid = dn->dn_newuid; in userquota_updates_task() 1997 dn->dn_oldgid = dn->dn_newgid; in userquota_updates_task() 1998 dn->dn_oldprojid = dn->dn_newprojid; in userquota_updates_task() 2233 dn->dn_newuid = dn->dn_olduid; in dmu_objset_userquota_get_ids() 2234 dn->dn_newgid = dn->dn_oldgid; in dmu_objset_userquota_get_ids() [all …]
|
| H A D | dbuf_stats.c | 69 dnode_t *dn = DB_DNODE(db); in __dbuf_stats_hash_table_data() local 75 __dmu_object_info_from_dnode(dn, &doi); in __dbuf_stats_hash_table_data() 83 spa_name(dn->dn_objset->os_spa), in __dbuf_stats_hash_table_data() 117 (ulong_t)zfs_refcount_count(&dn->dn_holds), in __dbuf_stats_hash_table_data()
|
| H A D | dmu_redact.c | 857 uint64_t *object, dnode_t **dn) in hold_next_object() argument 860 if (*dn != NULL) in hold_next_object() 861 dnode_rele(*dn, tag); in hold_next_object() 862 *dn = NULL; in hold_next_object() 873 dnode_rele(*dn, tag); in hold_next_object() 874 *dn = NULL; in hold_next_object() 902 dnode_t *dn = NULL; in perform_redaction() local 941 endblkid, dn->dn_datablksz); in perform_redaction() 949 if (dn != NULL) in perform_redaction() 952 if (err == 0 && dn != NULL) in perform_redaction() [all …]
|
| H A D | zio_inject.c | 708 dnode_t *dn = NULL; in zio_calculate_range() local 728 error = dnode_hold(os, record->zi_object, FTAG, &dn); in zio_calculate_range() 736 record->zi_start >>= dn->dn_datablkshift; in zio_calculate_range() 737 record->zi_end >>= dn->dn_datablkshift; in zio_calculate_range() 740 if (record->zi_level >= dn->dn_nlevels) { in zio_calculate_range() 741 dnode_rele(dn, FTAG); in zio_calculate_range() 746 int shift = dn->dn_indblkshift - SPA_BLKPTRSHIFT; in zio_calculate_range() 755 dnode_rele(dn, FTAG); in zio_calculate_range()
|
| H A D | zap_micro.c | 583 zap_lockdir_by_dnode(dnode_t *dn, dmu_tx_t *tx, in zap_lockdir_by_dnode() argument 737 dnode_t *dn; in zap_create_impl() local 740 &dn, FTAG, tx); in zap_create_impl() 741 mzap_create_impl(dn, normflags, flags, tx); in zap_create_impl() 742 dnode_rele(dn, FTAG); in zap_create_impl() 783 dnode_t *dn; in zap_create_claim_norm_dnsize() local 792 error = dnode_hold(os, obj, FTAG, &dn); in zap_create_claim_norm_dnsize() 796 mzap_create_impl(dn, normflags, 0, tx); in zap_create_claim_norm_dnsize() 798 dnode_rele(dn, FTAG); in zap_create_claim_norm_dnsize() 1047 zap_lookup_by_dnode(dnode_t *dn, const char *name, in zap_lookup_by_dnode() argument [all …]
|
| H A D | dmu_recv.c | 1792 dnode_t *dn; in receive_object() local 1799 VERIFY0(dmu_bonus_hold_by_dnode(dn, FTAG, &db, flags)); in receive_object() 1817 dnode_rele(dn, FTAG); in receive_object() 1865 dnode_t *dn; in flush_write_batch_impl() local 1887 dnode_rele(dn, FTAG); in flush_write_batch_impl() 1898 if (drrw->drr_logical_size != dn->dn_datablksz) { in flush_write_batch_impl() 1920 dmu_write_by_dnode(dn, in flush_write_batch_impl() 1927 dmu_write_by_dnode(dn, in flush_write_batch_impl() 1936 dmu_write_policy(rwa->os, dn, 0, 0, &zp); in flush_write_batch_impl() 1986 err = dmu_lightweight_write_by_dnode(dn, in flush_write_batch_impl() [all …]
|
| /f-stack/freebsd/contrib/openzfs/include/os/linux/zfs/sys/ |
| H A D | trace_dnode.h | 48 TP_ARGS(dn, refcount, dbufs), 72 __entry->dn_object = dn->dn_object; 73 __entry->dn_type = dn->dn_type; 74 __entry->dn_bonuslen = dn->dn_bonuslen; 76 __entry->dn_nblkptr = dn->dn_nblkptr; 77 __entry->dn_checksum = dn->dn_checksum; 78 __entry->dn_compress = dn->dn_compress; 79 __entry->dn_nlevels = dn->dn_nlevels; 82 __entry->dn_moved = dn->dn_moved; 85 __entry->dn_maxblkid = dn->dn_maxblkid; [all …]
|
| /f-stack/freebsd/contrib/openzfs/include/sys/ |
| H A D | dnode.h | 106 #define DN_SLOT_IS_PTR(dn) ((void *)dn > DN_SLOT_INTERIOR) argument 107 #define DN_SLOT_IS_VALID(dn) ((void *)dn != NULL) argument 380 #define DN_DBUFS_COUNT(dn) ((dn)->dn_dbufs_count + \ argument 381 avl_numnodes(&(dn)->dn_dbufs)) 425 void dnode_rele(dnode_t *dn, void *ref); 439 void dnode_verify(dnode_t *dn); 451 void dnode_evict_dbufs(dnode_t *dn); 452 void dnode_evict_bonus(dnode_t *dn); 601 uint64_t __db_obj = (dn)->dn_object; \ 612 #define DNODE_VERIFY(dn) dnode_verify(dn) argument [all …]
|
| H A D | dbuf.h | 338 void dbuf_create_bonus(struct dnode *dn); 341 void dbuf_rm_spill(struct dnode *dn, dmu_tx_t *tx); 343 dmu_buf_impl_t *dbuf_hold(struct dnode *dn, uint64_t blkid, void *tag); 344 dmu_buf_impl_t *dbuf_hold_level(struct dnode *dn, int level, uint64_t blkid, 346 int dbuf_hold_impl(struct dnode *dn, uint8_t level, uint64_t blkid, 350 int dbuf_prefetch_impl(struct dnode *dn, int64_t level, uint64_t blkid, 353 int dbuf_prefetch(struct dnode *dn, int64_t level, uint64_t blkid, 373 dbuf_dirty_record_t *dbuf_dirty_lightweight(dnode_t *dn, uint64_t blkid, 380 int dmu_lightweight_write_by_dnode(dnode_t *dn, uint64_t offset, abd_t *abd, 392 void dbuf_free_range(struct dnode *dn, uint64_t start, uint64_t end, [all …]
|
| H A D | dmu.h | 515 void dmu_write_policy(objset_t *os, dnode_t *dn, int level, int wp, 531 int dmu_bonus_hold_by_dnode(dnode_t *dn, void *tag, dmu_buf_t **dbp, 545 int dmu_spill_hold_by_dnode(dnode_t *dn, uint32_t flags, 565 int dmu_buf_hold_by_dnode(dnode_t *dn, uint64_t offset, 567 int dmu_buf_hold_array_by_dnode(dnode_t *dn, uint64_t offset, 782 void dmu_tx_hold_zap_by_dnode(dmu_tx_t *tx, dnode_t *dn, int add, 785 void dmu_tx_hold_bonus_by_dnode(dmu_tx_t *tx, dnode_t *dn); 845 void dmu_write_by_dnode(dnode_t *dn, uint64_t offset, uint64_t size, 852 int dmu_read_uio_dnode(dnode_t *dn, struct uio *uio, uint64_t size); 857 int dmu_write_uio_dnode(dnode_t *dn, struct uio *uio, uint64_t size, [all …]
|
| H A D | zap.h | 147 void mzap_create_impl(dnode_t *dn, int normflags, zap_flags_t flags, 226 int zap_lookup_by_dnode(dnode_t *dn, const char *name, 228 int zap_lookup_norm_by_dnode(dnode_t *dn, const char *name, 233 int zap_count_write_by_dnode(dnode_t *dn, const char *name, 245 int zap_add_by_dnode(dnode_t *dn, const char *key, 287 int zap_remove_by_dnode(dnode_t *dn, const char *name, dmu_tx_t *tx);
|
| /f-stack/freebsd/kern/ |
| H A D | subr_pcpu.c | 199 struct dpcpu_free *dn; in dpcpu_free() local 220 dn = TAILQ_NEXT(df, df_link); in dpcpu_free() 221 if (df->df_start + df->df_len == dn->df_start) { in dpcpu_free() 222 df->df_len += dn->df_len; in dpcpu_free() 223 TAILQ_REMOVE(&dpcpu_head, dn, df_link); in dpcpu_free() 224 free(dn, M_PCPU); in dpcpu_free() 236 dn = malloc(sizeof(*df), M_PCPU, M_WAITOK | M_ZERO); in dpcpu_free() 237 dn->df_start = start; in dpcpu_free() 238 dn->df_len = size; in dpcpu_free() 240 TAILQ_INSERT_BEFORE(df, dn, df_link); in dpcpu_free() [all …]
|
| /f-stack/freebsd/net/ |
| H A D | vnet.c | 408 struct vnet_data_free *dn; in vnet_data_free() local 429 dn = TAILQ_NEXT(df, vnd_link); in vnet_data_free() 430 if (df->vnd_start + df->vnd_len == dn->vnd_start) { in vnet_data_free() 431 df->vnd_len += dn->vnd_len; in vnet_data_free() 432 TAILQ_REMOVE(&vnet_data_free_head, dn, in vnet_data_free() 434 free(dn, M_VNET_DATA_FREE); in vnet_data_free() 446 dn = malloc(sizeof(*df), M_VNET_DATA_FREE, M_WAITOK | M_ZERO); in vnet_data_free() 447 dn->vnd_start = start; in vnet_data_free() 448 dn->vnd_len = size; in vnet_data_free() 450 TAILQ_INSERT_BEFORE(df, dn, vnd_link); in vnet_data_free() [all …]
|
| /f-stack/freebsd/netpfil/ipfw/ |
| H A D | ip_dummynet.c | 940 } dn; in copy_obj() local 951 memcpy(&dn.l, _o, sizeof(dn.l)); in copy_obj() 953 dn.l.burst = div64(dn.l.burst, 8 * hz); in copy_obj() 954 dn.l.delay = dn.l.delay * 1000 / hz; in copy_obj() 955 memcpy(*start, &dn.l, sizeof(dn.l)); in copy_obj() 958 memcpy(&dn.s, _o, sizeof(dn.s)); in copy_obj() 961 memcpy(*start, &dn.s, sizeof(dn.s)); in copy_obj() 1991 } *dn; in do_config() local 2072 dn = malloc(sizeof(*dn), M_TEMP, M_WAITOK); in do_config() 2078 dn = malloc(sizeof(*dn), M_TEMP, M_WAITOK); in do_config() [all …]
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/ |
| H A D | send_realloc_dnode_size.ksh | 47 rm -f $BACKDIR/fs-dn-legacy 48 rm -f $BACKDIR/fs-dn-1k 49 rm -f $BACKDIR/fs-dn-2k
|
| /f-stack/freebsd/netgraph/ |
| H A D | ng_device.c | 210 const char *dn; in ng_device_rcvmsg() local 225 dn = devtoname(priv->ngddev); in ng_device_rcvmsg() 226 strlcpy((char *)resp->data, dn, strlen(dn) + 1); in ng_device_rcvmsg()
|
| /f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | dmu_os.c | 85 dnode_t *dn; in dmu_buf_hold_array() local 88 err = dnode_hold(os, object, FTAG, &dn); in dmu_buf_hold_array() 92 err = dmu_buf_hold_array_by_dnode(dn, offset, length, read, tag, in dmu_buf_hold_array() 95 dnode_rele(dn, FTAG); in dmu_buf_hold_array()
|
| /f-stack/dpdk/drivers/bus/dpaa/base/qbman/ |
| H A D | bman_driver.c | 218 const struct device_node *dn = of_find_compatible_node(NULL, in bman_global_init() local 220 if (!dn) in bman_global_init() 223 if (bman_init_ccsr(dn)) in bman_global_init()
|
| /f-stack/dpdk/app/test/ |
| H A D | test_bpf.c | 1002 struct dummy_net *dn; in test_jump2_prepare() local 1004 dn = arg; in test_jump2_prepare() 1005 memset(dn, 0, sizeof(*dn)); in test_jump2_prepare() 1011 &dn->eth_hdr.d_addr); in test_jump2_prepare() 1013 &dn->eth_hdr.s_addr); in test_jump2_prepare() 1020 dn->vlan_hdr.vlan_tci = 32; in test_jump2_prepare() 1026 dn->ip_hdr.time_to_live = 64; /* IP_DEFTTL */ in test_jump2_prepare() 1027 dn->ip_hdr.next_proto_id = IPPROTO_TCP; in test_jump2_prepare() 1028 dn->ip_hdr.packet_id = rte_cpu_to_be_16(0x463c); in test_jump2_prepare() 1029 dn->ip_hdr.total_length = rte_cpu_to_be_16(60); in test_jump2_prepare() [all …]
|