Home
last modified time | relevance | path

Searched refs:l_hdr (Results 1 – 7 of 7) sorted by relevance

/freebsd/sys/contrib/openzfs/module/zfs/
H A Dzap_leaf.c53 (64 - ZAP_LEAF_HASH_SHIFT(l) - zap_leaf_phys(l)->l_hdr.lh_prefix_len)))
106 buf->l_hdr.lh_block_type = BSWAP_64(buf->l_hdr.lh_block_type); in zap_leaf_byteswap()
107 buf->l_hdr.lh_prefix = BSWAP_64(buf->l_hdr.lh_prefix); in zap_leaf_byteswap()
108 buf->l_hdr.lh_magic = BSWAP_32(buf->l_hdr.lh_magic); in zap_leaf_byteswap()
109 buf->l_hdr.lh_nfree = BSWAP_16(buf->l_hdr.lh_nfree); in zap_leaf_byteswap()
110 buf->l_hdr.lh_nentries = BSWAP_16(buf->l_hdr.lh_nentries); in zap_leaf_byteswap()
111 buf->l_hdr.lh_prefix_len = BSWAP_16(buf->l_hdr.lh_prefix_len); in zap_leaf_byteswap()
112 buf->l_hdr.lh_freelist = BSWAP_16(buf->l_hdr.lh_freelist); in zap_leaf_byteswap()
155 memset(&zap_leaf_phys(l)->l_hdr, 0, in zap_leaf_init()
164 zap_leaf_phys(l)->l_hdr.lh_block_type = ZBT_LEAF; in zap_leaf_init()
[all …]
H A Dzap.c516 ASSERT0(zap_leaf_phys(l)->l_hdr.lh_pad1); in zap_open_leaf()
578 ASSERT3U(zap_leaf_phys(l)->l_hdr.lh_block_type, ==, ZBT_LEAF); in zap_get_leaf_byblk()
579 ASSERT3U(zap_leaf_phys(l)->l_hdr.lh_magic, ==, ZAP_LEAF_MAGIC); in zap_get_leaf_byblk()
704 ZAP_HASH_IDX(h, zap_leaf_phys(*lp)->l_hdr.lh_prefix_len) == in zap_deref_leaf()
705 zap_leaf_phys(*lp)->l_hdr.lh_prefix); in zap_deref_leaf()
716 int old_prefix_len = zap_leaf_phys(l)->l_hdr.lh_prefix_len; in zap_expand_leaf()
722 zap_leaf_phys(l)->l_hdr.lh_prefix); in zap_expand_leaf()
751 if (zap_leaf_phys(l)->l_hdr.lh_prefix_len != old_prefix_len) { in zap_expand_leaf()
760 zap_leaf_phys(l)->l_hdr.lh_prefix); in zap_expand_leaf()
785 ASSERT3U(zap_leaf_phys(l)->l_hdr.lh_prefix_len, >, 0); in zap_expand_leaf()
[all …]
H A Dbtree.c967 zfs_btree_hdr_t *l_hdr = idx.bti_node; in zfs_btree_bulk_finish() local
992 bt_transfer_leaf(tree, l_neighbor, l_hdr->bth_count - in zfs_btree_bulk_finish()
999 bcpy(l_neighbor->btl_elems + (l_hdr->bth_first + in zfs_btree_bulk_finish()
1000 l_hdr->bth_count - move_count) * size, separator, size); in zfs_btree_bulk_finish()
1003 bt_shrink_leaf(tree, l_neighbor, l_hdr->bth_count - move_count, in zfs_btree_bulk_finish()
1006 ASSERT3U(l_hdr->bth_count, >=, capacity / 2); in zfs_btree_bulk_finish()
1493 zfs_btree_hdr_t *l_hdr = (parent_idx == 0 ? NULL : in zfs_btree_remove_from_node() local
1495 if (l_hdr != NULL && l_hdr->bth_count > min_count) { in zfs_btree_remove_from_node()
1497 ASSERT(zfs_btree_is_core(l_hdr)); in zfs_btree_remove_from_node()
1498 zfs_btree_core_t *neighbor = (zfs_btree_core_t *)l_hdr; in zfs_btree_remove_from_node()
[all …]
/freebsd/usr.sbin/makefs/zfs/
H A Dzap.c331 leaf->l_hdr.lh_block_type = ZBT_LEAF; in zap_fat_write_leaf_init()
332 leaf->l_hdr.lh_magic = ZAP_LEAF_MAGIC; in zap_fat_write_leaf_init()
333 leaf->l_hdr.lh_nfree = ZAP_LEAF_NUMCHUNKS(l); in zap_fat_write_leaf_init()
334 leaf->l_hdr.lh_prefix = prefix; in zap_fat_write_leaf_init()
335 leaf->l_hdr.lh_prefix_len = prefixlen; in zap_fat_write_leaf_init()
338 assert(leaf->l_hdr.lh_nfree < 0xffff); in zap_fat_write_leaf_init()
448 assert(l.l_phys->l_hdr.lh_nfree >= nchunks); in zap_fat_write()
449 l.l_phys->l_hdr.lh_nfree -= nchunks; in zap_fat_write()
450 l.l_phys->l_hdr.lh_nentries++; in zap_fat_write()
459 *lptr = l.l_phys->l_hdr.lh_freelist; in zap_fat_write()
[all …]
/freebsd/sys/contrib/openzfs/include/sys/
H A Dzap_leaf.h126 } l_hdr; /* 2 24-byte chunks */ member
/freebsd/sys/cddl/boot/zfs/
H A Dzfsimpl.h1681 (64 - ZAP_LEAF_HASH_SHIFT(l) - (l)->l_phys->l_hdr.lh_prefix_len)))
1709 } l_hdr; /* 2 24-byte chunks */ member
/freebsd/stand/libsa/zfs/
H A Dzfsimpl.c2734 (64 - ZAP_LEAF_HASH_SHIFT(l) - (l)->l_phys->l_hdr.lh_prefix_len)))
2748 if (zl->l_phys->l_hdr.lh_prefix_len > 0 && in zap_leaf_lookup()
2749 zl->l_phys->l_hdr.lh_prefix != in zap_leaf_lookup()
2750 hash >> (64 - zl->l_phys->l_hdr.lh_prefix_len)) in zap_leaf_lookup()