Lines Matching refs:ltp

89 	xfs_dir2_leaf_tail_t	*ltp;  in xfs_dir3_leaf_check_int()  local
108 ltp = xfs_dir2_leaf_tail_p(geo, leaf); in xfs_dir3_leaf_check_int()
121 (char *)&ents[hdr->count] > (char *)xfs_dir2_leaf_bests_p(ltp)) in xfs_dir3_leaf_check_int()
324 struct xfs_dir2_leaf_tail *ltp; in xfs_dir3_leaf_init() local
326 ltp = xfs_dir2_leaf_tail_p(mp->m_dir_geo, leaf); in xfs_dir3_leaf_init()
327 ltp->bestcount = 0; in xfs_dir3_leaf_init()
384 xfs_dir2_leaf_tail_t *ltp; /* leaf's tail */ in xfs_dir2_block_to_leaf() local
462 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_block_to_leaf()
463 ltp->bestcount = cpu_to_be32(1); in xfs_dir2_block_to_leaf()
464 bestsp = xfs_dir2_leaf_bests_p(ltp); in xfs_dir2_block_to_leaf()
624 xfs_dir2_leaf_tail_t *ltp; /* leaf tail pointer */ in xfs_dir2_leaf_addname() local
652 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_leaf_addname()
655 bestsp = xfs_dir2_leaf_bests_p(ltp); in xfs_dir2_leaf_addname()
670 ASSERT(i < be32_to_cpu(ltp->bestcount)); in xfs_dir2_leaf_addname()
681 for (i = 0; i < be32_to_cpu(ltp->bestcount); i++) { in xfs_dir2_leaf_addname()
804 if (use_block >= be32_to_cpu(ltp->bestcount)) { in xfs_dir2_leaf_addname()
807 be32_to_cpu(ltp->bestcount) * sizeof(bestsp[0])); in xfs_dir2_leaf_addname()
808 be32_add_cpu(&ltp->bestcount, 1); in xfs_dir2_leaf_addname()
811 be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_addname()
1061 xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */ in xfs_dir3_leaf_log_bests() local
1066 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir3_leaf_log_bests()
1067 firstb = xfs_dir2_leaf_bests_p(ltp) + first; in xfs_dir3_leaf_log_bests()
1068 lastb = xfs_dir2_leaf_bests_p(ltp) + last; in xfs_dir3_leaf_log_bests()
1131 xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */ in xfs_dir3_leaf_log_tail() local
1138 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir3_leaf_log_tail()
1139 xfs_trans_log_buf(args->trans, bp, (uint)((char *)ltp - (char *)leaf), in xfs_dir3_leaf_log_tail()
1352 xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */ in xfs_dir2_leaf_removename() local
1384 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_leaf_removename()
1385 bestsp = xfs_dir2_leaf_bests_p(ltp); in xfs_dir2_leaf_removename()
1443 if (db == be32_to_cpu(ltp->bestcount) - 1) { in xfs_dir2_leaf_removename()
1456 (be32_to_cpu(ltp->bestcount) - (db - i)) * sizeof(*bestsp)); in xfs_dir2_leaf_removename()
1457 be32_add_cpu(&ltp->bestcount, -(db - i)); in xfs_dir2_leaf_removename()
1460 be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_removename()
1599 xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */ in xfs_dir2_leaf_trim_data() local
1613 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_leaf_trim_data()
1624 ASSERT(db == be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_trim_data()
1639 bestsp = xfs_dir2_leaf_bests_p(ltp); in xfs_dir2_leaf_trim_data()
1640 be32_add_cpu(&ltp->bestcount, -1); in xfs_dir2_leaf_trim_data()
1641 memmove(&bestsp[1], &bestsp[0], be32_to_cpu(ltp->bestcount) * sizeof(*bestsp)); in xfs_dir2_leaf_trim_data()
1643 xfs_dir3_leaf_log_bests(args, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_trim_data()
1683 xfs_dir2_leaf_tail_t *ltp; /* tail of leaf structure */ in xfs_dir2_node_to_leaf() local
1779 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_node_to_leaf()
1780 ltp->bestcount = cpu_to_be32(freehdr.nvalid); in xfs_dir2_node_to_leaf()
1785 memcpy(xfs_dir2_leaf_bests_p(ltp), dp->d_ops->free_bests_p(free), in xfs_dir2_node_to_leaf()
1790 xfs_dir3_leaf_log_bests(args, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_node_to_leaf()