Lines Matching defs:ltp

146 	xfs_dir2_leaf_tail_t		*ltp;
152 ltp = xfs_dir2_leaf_tail_p(geo, leaf);
164 (char *)&hdr->ents[hdr->count] > (char *)xfs_dir2_leaf_bests_p(ltp))
181 be32_to_cpu(ltp->bestcount))
337 struct xfs_dir2_leaf_tail *ltp;
339 ltp = xfs_dir2_leaf_tail_p(mp->m_dir_geo, leaf);
340 ltp->bestcount = 0;
397 xfs_dir2_leaf_tail_t *ltp; /* leaf's tail */
474 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf);
475 ltp->bestcount = cpu_to_be32(1);
476 bestsp = xfs_dir2_leaf_bests_p(ltp);
630 struct xfs_dir2_leaf_tail *ltp; /* leaf tail pointer */
661 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf);
664 bestsp = xfs_dir2_leaf_bests_p(ltp);
679 ASSERT(i < be32_to_cpu(ltp->bestcount));
690 for (i = 0; i < be32_to_cpu(ltp->bestcount); i++) {
813 if (use_block >= be32_to_cpu(ltp->bestcount)) {
816 be32_to_cpu(ltp->bestcount) * sizeof(bestsp[0]));
817 be32_add_cpu(&ltp->bestcount, 1);
820 be32_to_cpu(ltp->bestcount) - 1);
1072 xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */
1077 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf);
1078 firstb = xfs_dir2_leaf_bests_p(ltp) + first;
1079 lastb = xfs_dir2_leaf_bests_p(ltp) + last;
1141 xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */
1148 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf);
1149 xfs_trans_log_buf(args->trans, bp, (uint)((char *)ltp - (char *)leaf),
1361 xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */
1392 ltp = xfs_dir2_leaf_tail_p(geo, leaf);
1393 bestsp = xfs_dir2_leaf_bests_p(ltp);
1455 if (db == be32_to_cpu(ltp->bestcount) - 1) {
1468 (be32_to_cpu(ltp->bestcount) - (db - i)) * sizeof(*bestsp));
1469 be32_add_cpu(&ltp->bestcount, -(db - i));
1472 be32_to_cpu(ltp->bestcount) - 1);
1606 xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */
1619 ltp = xfs_dir2_leaf_tail_p(geo, leaf);
1631 ASSERT(db == be32_to_cpu(ltp->bestcount) - 1);
1646 bestsp = xfs_dir2_leaf_bests_p(ltp);
1647 be32_add_cpu(&ltp->bestcount, -1);
1648 memmove(&bestsp[1], &bestsp[0], be32_to_cpu(ltp->bestcount) * sizeof(*bestsp));
1650 xfs_dir3_leaf_log_bests(args, lbp, 0, be32_to_cpu(ltp->bestcount) - 1);
1689 xfs_dir2_leaf_tail_t *ltp; /* tail of leaf structure */
1784 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf);
1785 ltp->bestcount = cpu_to_be32(freehdr.nvalid);
1790 memcpy(xfs_dir2_leaf_bests_p(ltp), freehdr.bests,
1795 xfs_dir3_leaf_log_bests(args, lbp, 0, be32_to_cpu(ltp->bestcount) - 1);