Lines Matching refs:leaf
66 struct xfs_dir2_leaf *leaf = bp->b_addr; in xfs_dir3_leafn_check() local
69 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir3_leafn_check()
78 return xfs_dir3_leaf_check_int(dp->i_mount, dp, &leafhdr, leaf); in xfs_dir3_leafn_check()
296 xfs_dir2_leaf_t *leaf; /* leaf structure */ in xfs_dir2_leaf_to_node() local
324 leaf = lbp->b_addr; in xfs_dir2_leaf_to_node()
325 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_leaf_to_node()
357 if (leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC)) in xfs_dir2_leaf_to_node()
358 leaf->hdr.info.magic = cpu_to_be16(XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leaf_to_node()
360 leaf->hdr.info.magic = cpu_to_be16(XFS_DIR3_LEAFN_MAGIC); in xfs_dir2_leaf_to_node()
381 xfs_dir2_leaf_t *leaf; /* leaf structure */ in xfs_dir2_leafn_add() local
392 leaf = bp->b_addr; in xfs_dir2_leafn_add()
393 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leafn_add()
394 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leafn_add()
448 dp->d_ops->leaf_hdr_to_disk(leaf, &leafhdr); in xfs_dir2_leafn_add()
485 struct xfs_dir2_leaf *leaf = bp->b_addr; in xfs_dir2_leafn_lasthash() local
489 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leafn_lasthash()
499 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leafn_lasthash()
522 xfs_dir2_leaf_t *leaf; /* leaf structure */ in xfs_dir2_leafn_lookup_for_addname() local
535 leaf = bp->b_addr; in xfs_dir2_leafn_lookup_for_addname()
536 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leafn_lookup_for_addname()
537 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leafn_lookup_for_addname()
675 xfs_dir2_leaf_t *leaf; /* leaf structure */ in xfs_dir2_leafn_lookup_for_entry() local
687 leaf = bp->b_addr; in xfs_dir2_leafn_lookup_for_entry()
688 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leafn_lookup_for_entry()
689 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leafn_lookup_for_entry()
1161 xfs_dir2_leaf_t *leaf; /* leaf structure */ in xfs_dir2_leafn_remove() local
1176 leaf = bp->b_addr; in xfs_dir2_leafn_remove()
1177 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leafn_remove()
1178 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leafn_remove()
1198 dp->d_ops->leaf_hdr_to_disk(leaf, &leafhdr); in xfs_dir2_leafn_remove()
1386 xfs_dir2_leaf_t *leaf; /* leaf structure */ in xfs_dir2_leafn_toosmall() local
1398 leaf = blk->bp->b_addr; in xfs_dir2_leafn_toosmall()
1399 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leafn_toosmall()
1400 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leafn_toosmall()
1461 leaf = bp->b_addr; in xfs_dir2_leafn_toosmall()
1462 dp->d_ops->leaf_hdr_from_disk(&hdr2, leaf); in xfs_dir2_leafn_toosmall()
1463 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leafn_toosmall()
2136 xfs_dir2_leaf_t *leaf; /* leaf structure */ in xfs_dir2_node_replace() local
2175 leaf = blk->bp->b_addr; in xfs_dir2_node_replace()
2176 ents = args->dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_node_replace()