Lines Matching refs:ltp

71 	xfs_dir2_leaf_tail_t	*ltp;		/* leaf's tail */  in xfs_dir2_block_to_leaf()  local
135 ltp = xfs_dir2_leaf_tail_p(mp, leaf); in xfs_dir2_block_to_leaf()
136 ltp->bestcount = cpu_to_be32(1); in xfs_dir2_block_to_leaf()
137 bestsp = xfs_dir2_leaf_bests_p(ltp); in xfs_dir2_block_to_leaf()
302 xfs_dir2_leaf_tail_t *ltp; /* leaf tail pointer */ in xfs_dir2_leaf_addname() local
333 ltp = xfs_dir2_leaf_tail_p(mp, leaf); in xfs_dir2_leaf_addname()
334 bestsp = xfs_dir2_leaf_bests_p(ltp); in xfs_dir2_leaf_addname()
348 ASSERT(i < be32_to_cpu(ltp->bestcount)); in xfs_dir2_leaf_addname()
359 for (i = 0; i < be32_to_cpu(ltp->bestcount); i++) { in xfs_dir2_leaf_addname()
484 if (use_block >= be32_to_cpu(ltp->bestcount)) { in xfs_dir2_leaf_addname()
487 be32_to_cpu(ltp->bestcount) * sizeof(bestsp[0])); in xfs_dir2_leaf_addname()
488 be32_add_cpu(&ltp->bestcount, 1); in xfs_dir2_leaf_addname()
490 xfs_dir2_leaf_log_bests(tp, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_addname()
592 xfs_dir2_leaf_tail_t *ltp; /* leaf tail pointer */ in xfs_dir2_leaf_check() local
605 ltp = xfs_dir2_leaf_tail_p(mp, leaf); in xfs_dir2_leaf_check()
610 (char *)xfs_dir2_leaf_bests_p(ltp)); in xfs_dir2_leaf_check()
1141 xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */ in xfs_dir2_leaf_init() local
1176 ltp = xfs_dir2_leaf_tail_p(mp, leaf); in xfs_dir2_leaf_init()
1177 ltp->bestcount = 0; in xfs_dir2_leaf_init()
1197 xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */ in xfs_dir2_leaf_log_bests() local
1201 ltp = xfs_dir2_leaf_tail_p(tp->t_mountp, leaf); in xfs_dir2_leaf_log_bests()
1202 firstb = xfs_dir2_leaf_bests_p(ltp) + first; in xfs_dir2_leaf_log_bests()
1203 lastb = xfs_dir2_leaf_bests_p(ltp) + last; in xfs_dir2_leaf_log_bests()
1257 xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */ in xfs_dir2_leaf_log_tail() local
1263 ltp = xfs_dir2_leaf_tail_p(mp, leaf); in xfs_dir2_leaf_log_tail()
1264 xfs_da_log_buf(tp, bp, (uint)((char *)ltp - (char *)leaf), in xfs_dir2_leaf_log_tail()
1469 xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */ in xfs_dir2_leaf_removename() local
1499 ltp = xfs_dir2_leaf_tail_p(mp, leaf); in xfs_dir2_leaf_removename()
1500 bestsp = xfs_dir2_leaf_bests_p(ltp); in xfs_dir2_leaf_removename()
1558 if (db == be32_to_cpu(ltp->bestcount) - 1) { in xfs_dir2_leaf_removename()
1571 (be32_to_cpu(ltp->bestcount) - (db - i)) * sizeof(*bestsp)); in xfs_dir2_leaf_removename()
1572 be32_add_cpu(&ltp->bestcount, -(db - i)); in xfs_dir2_leaf_removename()
1574 xfs_dir2_leaf_log_bests(tp, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_removename()
1711 xfs_dir2_leaf_tail_t *ltp; /* leaf tail structure */ in xfs_dir2_leaf_trim_data() local
1727 ltp = xfs_dir2_leaf_tail_p(mp, leaf); in xfs_dir2_leaf_trim_data()
1736 ASSERT(db == be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_trim_data()
1751 bestsp = xfs_dir2_leaf_bests_p(ltp); in xfs_dir2_leaf_trim_data()
1752 be32_add_cpu(&ltp->bestcount, -1); in xfs_dir2_leaf_trim_data()
1753 memmove(&bestsp[1], &bestsp[0], be32_to_cpu(ltp->bestcount) * sizeof(*bestsp)); in xfs_dir2_leaf_trim_data()
1755 xfs_dir2_leaf_log_bests(tp, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_trim_data()
1789 xfs_dir2_leaf_tail_t *ltp; /* tail of leaf structure */ in xfs_dir2_node_to_leaf() local
1877 ltp = xfs_dir2_leaf_tail_p(mp, leaf); in xfs_dir2_node_to_leaf()
1878 ltp->bestcount = free->hdr.nvalid; in xfs_dir2_node_to_leaf()
1882 memcpy(xfs_dir2_leaf_bests_p(ltp), free->bests, in xfs_dir2_node_to_leaf()
1883 be32_to_cpu(ltp->bestcount) * sizeof(xfs_dir2_data_off_t)); in xfs_dir2_node_to_leaf()
1884 xfs_dir2_leaf_log_bests(tp, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_node_to_leaf()