Lines Matching refs:bestcount
365 ltp->bestcount = 0; in xfs_dir3_leaf_init()
503 ltp->bestcount = cpu_to_be32(1); in xfs_dir2_block_to_leaf()
712 ASSERT(i < be32_to_cpu(ltp->bestcount)); in xfs_dir2_leaf_addname()
723 for (i = 0; i < be32_to_cpu(ltp->bestcount); i++) { in xfs_dir2_leaf_addname()
846 if (use_block >= be32_to_cpu(ltp->bestcount)) { in xfs_dir2_leaf_addname()
849 be32_to_cpu(ltp->bestcount) * sizeof(bestsp[0])); in xfs_dir2_leaf_addname()
850 be32_add_cpu(<p->bestcount, 1); in xfs_dir2_leaf_addname()
852 xfs_dir3_leaf_log_bests(tp, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_addname()
1869 if (db == be32_to_cpu(ltp->bestcount) - 1) { in xfs_dir2_leaf_removename()
1882 (be32_to_cpu(ltp->bestcount) - (db - i)) * sizeof(*bestsp)); in xfs_dir2_leaf_removename()
1883 be32_add_cpu(<p->bestcount, -(db - i)); in xfs_dir2_leaf_removename()
1885 xfs_dir3_leaf_log_bests(tp, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_removename()
2053 ASSERT(db == be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_trim_data()
2069 be32_add_cpu(<p->bestcount, -1); in xfs_dir2_leaf_trim_data()
2070 memmove(&bestsp[1], &bestsp[0], be32_to_cpu(ltp->bestcount) * sizeof(*bestsp)); in xfs_dir2_leaf_trim_data()
2072 xfs_dir3_leaf_log_bests(tp, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_trim_data()
2209 ltp->bestcount = cpu_to_be32(freehdr.nvalid); in xfs_dir2_node_to_leaf()
2219 xfs_dir3_leaf_log_bests(tp, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_node_to_leaf()