Lines Matching full:leaf

232  * Write some data to the fat ZAP leaf chunk starting at index "li".
259 * overflowing a leaf block. This is not (space) optimal, but is simple, and
260 * directories large enough to overflow a single 128KB leaf block are uncommon.
270 * All chunks will fit in a single leaf block. in zap_fat_write_prefixlen()
314 * Initialize a fat ZAP leaf block.
319 zap_leaf_phys_t *leaf; in zap_fat_write_leaf_init() local
321 leaf = l->l_phys; in zap_fat_write_leaf_init()
323 leaf->l_hdr.lh_block_type = ZBT_LEAF; in zap_fat_write_leaf_init()
324 leaf->l_hdr.lh_magic = ZAP_LEAF_MAGIC; in zap_fat_write_leaf_init()
325 leaf->l_hdr.lh_nfree = ZAP_LEAF_NUMCHUNKS(l); in zap_fat_write_leaf_init()
326 leaf->l_hdr.lh_prefix = prefix; in zap_fat_write_leaf_init()
327 leaf->l_hdr.lh_prefix_len = prefixlen; in zap_fat_write_leaf_init()
329 /* Initialize the leaf hash table. */ in zap_fat_write_leaf_init()
330 assert(leaf->l_hdr.lh_nfree < 0xffff); in zap_fat_write_leaf_init()
331 memset(leaf->l_hash, 0xff, in zap_fat_write_leaf_init()
332 ZAP_LEAF_HASH_NUMENTRIES(l) * sizeof(*leaf->l_hash)); in zap_fat_write_leaf_init()
334 /* Initialize the leaf chunks. */ in zap_fat_write_leaf_init()
395 * How many leaf blocks do we need? Initialize them and update the in zap_fat_write()
409 * For each entry, figure out which leaf block it belongs to based on in zap_fat_write()
410 * the upper bits of its hash, allocate chunks from that leaf, and fill in zap_fat_write()
429 * How many leaf chunks do we need for this entry? in zap_fat_write()
437 * Allocate a run of free leaf chunks for this entry, in zap_fat_write()
488 * Finally, write out the leaf chunks for this entry. in zap_fat_write()