Lines Matching defs:ltp

145 	xfs_dir2_leaf_tail_t		*ltp;
149 ltp = xfs_dir2_leaf_tail_p(geo, leaf);
162 (char *)&hdr->ents[hdr->count] > (char *)xfs_dir2_leaf_bests_p(ltp))
328 struct xfs_dir2_leaf_tail *ltp;
330 ltp = xfs_dir2_leaf_tail_p(mp->m_dir_geo, leaf);
331 ltp->bestcount = 0;
388 xfs_dir2_leaf_tail_t *ltp; /* leaf's tail */
465 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf);
466 ltp->bestcount = cpu_to_be32(1);
467 bestsp = xfs_dir2_leaf_bests_p(ltp);
621 struct xfs_dir2_leaf_tail *ltp; /* leaf tail pointer */
652 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf);
655 bestsp = xfs_dir2_leaf_bests_p(ltp);
670 ASSERT(i < be32_to_cpu(ltp->bestcount));
681 for (i = 0; i < be32_to_cpu(ltp->bestcount); i++) {
804 if (use_block >= be32_to_cpu(ltp->bestcount)) {
807 be32_to_cpu(ltp->bestcount) * sizeof(bestsp[0]));
808 be32_add_cpu(&ltp->bestcount, 1);
811 be32_to_cpu(ltp->bestcount) - 1);
1063 xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */
1068 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf);
1069 firstb = xfs_dir2_leaf_bests_p(ltp) + first;
1070 lastb = xfs_dir2_leaf_bests_p(ltp) + last;
1132 xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */
1139 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf);
1140 xfs_trans_log_buf(args->trans, bp, (uint)((char *)ltp - (char *)leaf),
1352 xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */
1383 ltp = xfs_dir2_leaf_tail_p(geo, leaf);
1384 bestsp = xfs_dir2_leaf_bests_p(ltp);
1446 if (db == be32_to_cpu(ltp->bestcount) - 1) {
1459 (be32_to_cpu(ltp->bestcount) - (db - i)) * sizeof(*bestsp));
1460 be32_add_cpu(&ltp->bestcount, -(db - i));
1463 be32_to_cpu(ltp->bestcount) - 1);
1597 xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */
1610 ltp = xfs_dir2_leaf_tail_p(geo, leaf);
1622 ASSERT(db == be32_to_cpu(ltp->bestcount) - 1);
1637 bestsp = xfs_dir2_leaf_bests_p(ltp);
1638 be32_add_cpu(&ltp->bestcount, -1);
1639 memmove(&bestsp[1], &bestsp[0], be32_to_cpu(ltp->bestcount) * sizeof(*bestsp));
1641 xfs_dir3_leaf_log_bests(args, lbp, 0, be32_to_cpu(ltp->bestcount) - 1);
1680 xfs_dir2_leaf_tail_t *ltp; /* tail of leaf structure */
1775 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf);
1776 ltp->bestcount = cpu_to_be32(freehdr.nvalid);
1781 memcpy(xfs_dir2_leaf_bests_p(ltp), freehdr.bests,
1786 xfs_dir3_leaf_log_bests(args, lbp, 0, be32_to_cpu(ltp->bestcount) - 1);