Lines Matching refs:bestcount
331 ltp->bestcount = 0; in xfs_dir3_leaf_init()
466 ltp->bestcount = cpu_to_be32(1); in xfs_dir2_block_to_leaf()
670 ASSERT(i < be32_to_cpu(ltp->bestcount)); in xfs_dir2_leaf_addname()
681 for (i = 0; i < be32_to_cpu(ltp->bestcount); i++) { in xfs_dir2_leaf_addname()
804 if (use_block >= be32_to_cpu(ltp->bestcount)) { in xfs_dir2_leaf_addname()
807 be32_to_cpu(ltp->bestcount) * sizeof(bestsp[0])); in xfs_dir2_leaf_addname()
808 be32_add_cpu(<p->bestcount, 1); in xfs_dir2_leaf_addname()
811 be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_addname()
1446 if (db == be32_to_cpu(ltp->bestcount) - 1) { in xfs_dir2_leaf_removename()
1459 (be32_to_cpu(ltp->bestcount) - (db - i)) * sizeof(*bestsp)); in xfs_dir2_leaf_removename()
1460 be32_add_cpu(<p->bestcount, -(db - i)); in xfs_dir2_leaf_removename()
1463 be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_removename()
1622 ASSERT(db == be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_trim_data()
1638 be32_add_cpu(<p->bestcount, -1); in xfs_dir2_leaf_trim_data()
1639 memmove(&bestsp[1], &bestsp[0], be32_to_cpu(ltp->bestcount) * sizeof(*bestsp)); in xfs_dir2_leaf_trim_data()
1641 xfs_dir3_leaf_log_bests(args, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_trim_data()
1776 ltp->bestcount = cpu_to_be32(freehdr.nvalid); in xfs_dir2_node_to_leaf()
1786 xfs_dir3_leaf_log_bests(args, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_node_to_leaf()