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