Lines Matching refs:leaf

43 	struct xfs_dir2_leaf	*leaf = bp->b_addr;  in xfs_dir3_leaf1_check()  local
46 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir3_leaf1_check()
55 return xfs_dir3_leaf_check_int(dp->i_mount, dp, &leafhdr, leaf); in xfs_dir3_leaf1_check()
82 struct xfs_dir2_leaf *leaf) in xfs_dir3_leaf_check_int() argument
99 ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir3_leaf_check_int()
103 ents = ops->leaf_ents_p(leaf); in xfs_dir3_leaf_check_int()
104 ltp = xfs_dir2_leaf_tail_p(geo, leaf); in xfs_dir3_leaf_check_int()
145 struct xfs_dir2_leaf *leaf = bp->b_addr; in xfs_dir3_leaf_verify() local
152 return xfs_dir3_leaf_check_int(mp, NULL, NULL, leaf); in xfs_dir3_leaf_verify()
259 struct xfs_dir2_leaf *leaf = bp->b_addr; in xfs_dir3_leaf_init() local
275 memset(leaf, 0, sizeof(*leaf)); in xfs_dir3_leaf_init()
276 leaf->hdr.info.magic = cpu_to_be16(type); in xfs_dir3_leaf_init()
286 ltp = xfs_dir2_leaf_tail_p(mp->m_dir_geo, leaf); in xfs_dir3_leaf_init()
343 xfs_dir2_leaf_t *leaf; /* leaf structure */ in xfs_dir2_block_to_leaf() local
373 leaf = lbp->b_addr; in xfs_dir2_block_to_leaf()
379 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_block_to_leaf()
384 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_block_to_leaf()
387 dp->d_ops->leaf_hdr_to_disk(leaf, &leafhdr); in xfs_dir2_block_to_leaf()
422 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_block_to_leaf()
571 struct xfs_dir2_leaf *leaf; /* leaf structure */ in xfs_dir2_leaf_addname() local
608 leaf = lbp->b_addr; in xfs_dir2_leaf_addname()
609 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_leaf_addname()
610 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_addname()
611 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leaf_addname()
855 dp->d_ops->leaf_hdr_to_disk(leaf, &leafhdr); in xfs_dir2_leaf_addname()
874 xfs_dir2_leaf_t *leaf; /* leaf structure */ in xfs_dir3_leaf_compact() local
880 leaf = bp->b_addr; in xfs_dir3_leaf_compact()
887 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir3_leaf_compact()
908 dp->d_ops->leaf_hdr_to_disk(leaf, leafhdr); in xfs_dir3_leaf_compact()
1020 struct xfs_dir2_leaf *leaf = bp->b_addr; in xfs_dir3_leaf_log_bests() local
1023 ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) || in xfs_dir3_leaf_log_bests()
1024 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC)); in xfs_dir3_leaf_log_bests()
1026 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir3_leaf_log_bests()
1030 (uint)((char *)firstb - (char *)leaf), in xfs_dir3_leaf_log_bests()
1031 (uint)((char *)lastb - (char *)leaf + sizeof(*lastb) - 1)); in xfs_dir3_leaf_log_bests()
1046 struct xfs_dir2_leaf *leaf = bp->b_addr; in xfs_dir3_leaf_log_ents() local
1049 ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) || in xfs_dir3_leaf_log_ents()
1050 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC) || in xfs_dir3_leaf_log_ents()
1051 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_dir3_leaf_log_ents()
1052 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)); in xfs_dir3_leaf_log_ents()
1054 ents = args->dp->d_ops->leaf_ents_p(leaf); in xfs_dir3_leaf_log_ents()
1058 (uint)((char *)firstlep - (char *)leaf), in xfs_dir3_leaf_log_ents()
1059 (uint)((char *)lastlep - (char *)leaf + sizeof(*lastlep) - 1)); in xfs_dir3_leaf_log_ents()
1070 struct xfs_dir2_leaf *leaf = bp->b_addr; in xfs_dir3_leaf_log_header() local
1072 ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) || in xfs_dir3_leaf_log_header()
1073 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC) || in xfs_dir3_leaf_log_header()
1074 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_dir3_leaf_log_header()
1075 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)); in xfs_dir3_leaf_log_header()
1078 (uint)((char *)&leaf->hdr - (char *)leaf), in xfs_dir3_leaf_log_header()
1090 struct xfs_dir2_leaf *leaf = bp->b_addr; in xfs_dir3_leaf_log_tail() local
1093 ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) || in xfs_dir3_leaf_log_tail()
1094 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC) || in xfs_dir3_leaf_log_tail()
1095 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_dir3_leaf_log_tail()
1096 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)); in xfs_dir3_leaf_log_tail()
1098 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir3_leaf_log_tail()
1099 xfs_trans_log_buf(args->trans, bp, (uint)((char *)ltp - (char *)leaf), in xfs_dir3_leaf_log_tail()
1118 xfs_dir2_leaf_t *leaf; /* leaf structure */ in xfs_dir2_leaf_lookup() local
1134 leaf = lbp->b_addr; in xfs_dir2_leaf_lookup()
1135 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_lookup()
1179 xfs_dir2_leaf_t *leaf; /* leaf structure */ in xfs_dir2_leaf_lookup_int() local
1197 leaf = lbp->b_addr; in xfs_dir2_leaf_lookup_int()
1199 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_lookup_int()
1200 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leaf_lookup_int()
1310 xfs_dir2_leaf_t *leaf; /* leaf structure */ in xfs_dir2_leaf_removename() local
1329 leaf = lbp->b_addr; in xfs_dir2_leaf_removename()
1333 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leaf_removename()
1334 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_removename()
1344 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_leaf_removename()
1358 dp->d_ops->leaf_hdr_to_disk(leaf, &leafhdr); in xfs_dir2_leaf_removename()
1451 xfs_dir2_leaf_t *leaf; /* leaf structure */ in xfs_dir2_leaf_replace() local
1465 leaf = lbp->b_addr; in xfs_dir2_leaf_replace()
1466 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_replace()
1504 xfs_dir2_leaf_t *leaf; /* leaf structure */ in xfs_dir2_leaf_search_hash() local
1510 leaf = lbp->b_addr; in xfs_dir2_leaf_search_hash()
1511 ents = args->dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_search_hash()
1512 args->dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leaf_search_hash()
1559 xfs_dir2_leaf_t *leaf; /* leaf structure */ in xfs_dir2_leaf_trim_data() local
1573 leaf = lbp->b_addr; in xfs_dir2_leaf_trim_data()
1574 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_leaf_trim_data()
1645 xfs_dir2_leaf_t *leaf; /* leaf structure */ in xfs_dir2_node_to_leaf() local
1699 leaf = lbp->b_addr; in xfs_dir2_node_to_leaf()
1700 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_node_to_leaf()
1740 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_node_to_leaf()
1749 dp->d_ops->leaf_hdr_to_disk(leaf, &leafhdr); in xfs_dir2_node_to_leaf()