Lines Matching refs:ltp
88 xfs_dir2_leaf_tail_t *ltp; in xfs_dir3_leaf_check_int() local
107 ltp = xfs_dir2_leaf_tail_p(geo, leaf); in xfs_dir3_leaf_check_int()
120 (char *)&ents[hdr->count] > (char *)xfs_dir2_leaf_bests_p(ltp)) in xfs_dir3_leaf_check_int()
345 struct xfs_dir2_leaf_tail *ltp; in xfs_dir3_leaf_init() local
347 ltp = xfs_dir2_leaf_tail_p(mp->m_dir_geo, leaf); in xfs_dir3_leaf_init()
348 ltp->bestcount = 0; in xfs_dir3_leaf_init()
405 xfs_dir2_leaf_tail_t *ltp; /* leaf's tail */ in xfs_dir2_block_to_leaf() local
483 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_block_to_leaf()
484 ltp->bestcount = cpu_to_be32(1); in xfs_dir2_block_to_leaf()
485 bestsp = xfs_dir2_leaf_bests_p(ltp); in xfs_dir2_block_to_leaf()
645 xfs_dir2_leaf_tail_t *ltp; /* leaf tail pointer */ in xfs_dir2_leaf_addname() local
673 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_leaf_addname()
676 bestsp = xfs_dir2_leaf_bests_p(ltp); in xfs_dir2_leaf_addname()
691 ASSERT(i < be32_to_cpu(ltp->bestcount)); in xfs_dir2_leaf_addname()
702 for (i = 0; i < be32_to_cpu(ltp->bestcount); i++) { in xfs_dir2_leaf_addname()
825 if (use_block >= be32_to_cpu(ltp->bestcount)) { in xfs_dir2_leaf_addname()
828 be32_to_cpu(ltp->bestcount) * sizeof(bestsp[0])); in xfs_dir2_leaf_addname()
829 be32_add_cpu(<p->bestcount, 1); in xfs_dir2_leaf_addname()
832 be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_addname()
1085 xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */ in xfs_dir3_leaf_log_bests() local
1090 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir3_leaf_log_bests()
1091 firstb = xfs_dir2_leaf_bests_p(ltp) + first; in xfs_dir3_leaf_log_bests()
1092 lastb = xfs_dir2_leaf_bests_p(ltp) + last; in xfs_dir3_leaf_log_bests()
1155 xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */ in xfs_dir3_leaf_log_tail() local
1162 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir3_leaf_log_tail()
1163 xfs_trans_log_buf(args->trans, bp, (uint)((char *)ltp - (char *)leaf), in xfs_dir3_leaf_log_tail()
1376 xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */ in xfs_dir2_leaf_removename() local
1408 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_leaf_removename()
1409 bestsp = xfs_dir2_leaf_bests_p(ltp); in xfs_dir2_leaf_removename()
1468 if (db == be32_to_cpu(ltp->bestcount) - 1) { in xfs_dir2_leaf_removename()
1481 (be32_to_cpu(ltp->bestcount) - (db - i)) * sizeof(*bestsp)); in xfs_dir2_leaf_removename()
1482 be32_add_cpu(<p->bestcount, -(db - i)); in xfs_dir2_leaf_removename()
1485 be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_removename()
1624 xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */ in xfs_dir2_leaf_trim_data() local
1638 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_leaf_trim_data()
1649 ASSERT(db == be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_trim_data()
1664 bestsp = xfs_dir2_leaf_bests_p(ltp); in xfs_dir2_leaf_trim_data()
1665 be32_add_cpu(<p->bestcount, -1); in xfs_dir2_leaf_trim_data()
1666 memmove(&bestsp[1], &bestsp[0], be32_to_cpu(ltp->bestcount) * sizeof(*bestsp)); in xfs_dir2_leaf_trim_data()
1668 xfs_dir3_leaf_log_bests(args, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_trim_data()
1708 xfs_dir2_leaf_tail_t *ltp; /* tail of leaf structure */ in xfs_dir2_node_to_leaf() local
1804 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_node_to_leaf()
1805 ltp->bestcount = cpu_to_be32(freehdr.nvalid); in xfs_dir2_node_to_leaf()
1810 memcpy(xfs_dir2_leaf_bests_p(ltp), dp->d_ops->free_bests_p(free), in xfs_dir2_node_to_leaf()
1815 xfs_dir3_leaf_log_bests(args, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_node_to_leaf()