Lines Matching defs:ltp
75 xfs_dir2_leaf_tail_t *ltp; /* leaf's tail */
139 ltp = xfs_dir2_leaf_tail_p(mp, leaf);
140 ltp->bestcount = cpu_to_be32(1);
141 bestsp = xfs_dir2_leaf_bests_p(ltp);
181 xfs_dir2_leaf_tail_t *ltp; /* leaf tail pointer */
212 ltp = xfs_dir2_leaf_tail_p(mp, leaf);
213 bestsp = xfs_dir2_leaf_bests_p(ltp);
227 ASSERT(i < be32_to_cpu(ltp->bestcount));
238 for (i = 0; i < be32_to_cpu(ltp->bestcount); i++) {
359 if (use_block >= be32_to_cpu(ltp->bestcount)) {
362 be32_to_cpu(ltp->bestcount) * sizeof(bestsp[0]));
363 be32_add_cpu(<p->bestcount, 1);
365 xfs_dir2_leaf_log_bests(tp, lbp, 0, be32_to_cpu(ltp->bestcount) - 1);
559 xfs_dir2_leaf_tail_t *ltp; /* leaf tail pointer */
572 ltp = xfs_dir2_leaf_tail_p(mp, leaf);
577 (char *)xfs_dir2_leaf_bests_p(ltp));
1123 xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */
1158 ltp = xfs_dir2_leaf_tail_p(mp, leaf);
1159 ltp->bestcount = 0;
1179 xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */
1183 ltp = xfs_dir2_leaf_tail_p(tp->t_mountp, leaf);
1184 firstb = xfs_dir2_leaf_bests_p(ltp) + first;
1185 lastb = xfs_dir2_leaf_bests_p(ltp) + last;
1239 xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */
1245 ltp = xfs_dir2_leaf_tail_p(mp, leaf);
1246 xfs_da_log_buf(tp, bp, (uint)((char *)ltp - (char *)leaf),
1451 xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */
1481 ltp = xfs_dir2_leaf_tail_p(mp, leaf);
1482 bestsp = xfs_dir2_leaf_bests_p(ltp);
1540 if (db == be32_to_cpu(ltp->bestcount) - 1) {
1553 (be32_to_cpu(ltp->bestcount) - (db - i)) * sizeof(*bestsp));
1554 be32_add_cpu(<p->bestcount, -(db - i));
1556 xfs_dir2_leaf_log_bests(tp, lbp, 0, be32_to_cpu(ltp->bestcount) - 1);
1696 xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */
1720 ltp = xfs_dir2_leaf_tail_p(mp, leaf);
1723 ASSERT(db == be32_to_cpu(ltp->bestcount) - 1);
1735 bestsp = xfs_dir2_leaf_bests_p(ltp);
1736 be32_add_cpu(<p->bestcount, -1);
1737 memmove(&bestsp[1], &bestsp[0], be32_to_cpu(ltp->bestcount) * sizeof(*bestsp));
1739 xfs_dir2_leaf_log_bests(tp, lbp, 0, be32_to_cpu(ltp->bestcount) - 1);
1759 xfs_dir2_leaf_tail_t *ltp; /* tail of leaf structure */
1848 ltp = xfs_dir2_leaf_tail_p(mp, leaf);
1849 ltp->bestcount = free->hdr.nvalid;
1853 memcpy(xfs_dir2_leaf_bests_p(ltp), free->bests,
1854 be32_to_cpu(ltp->bestcount) * sizeof(leaf->bests[0]));
1855 xfs_dir2_leaf_log_bests(tp, lbp, 0, be32_to_cpu(ltp->bestcount) - 1);