Lines Matching refs:bestsp
438 __be16 *bestsp; /* leaf's bestsp entries */ in xfs_dir2_block_to_leaf() local
527 bestsp = xfs_dir2_leaf_bests_p(ltp); in xfs_dir2_block_to_leaf()
528 bestsp[0] = bf[0].length; in xfs_dir2_block_to_leaf()
670 __be16 *bestsp; /* freespace table in leaf */ in xfs_dir2_leaf_addname() local
716 bestsp = xfs_dir2_leaf_bests_p(ltp); in xfs_dir2_leaf_addname()
732 ASSERT(bestsp[i] != cpu_to_be16(NULLDATAOFF)); in xfs_dir2_leaf_addname()
733 if (be16_to_cpu(bestsp[i]) >= length) { in xfs_dir2_leaf_addname()
746 if (bestsp[i] == cpu_to_be16(NULLDATAOFF) && in xfs_dir2_leaf_addname()
749 else if (be16_to_cpu(bestsp[i]) >= length) { in xfs_dir2_leaf_addname()
768 if (use_block != -1 && bestsp[use_block] == cpu_to_be16(NULLDATAOFF)) in xfs_dir2_leaf_addname()
774 if ((char *)bestsp - (char *)&ents[leafhdr.count] < needbytes && in xfs_dir2_leaf_addname()
782 else if ((char *)bestsp - (char *)&ents[leafhdr.count] < needbytes) { in xfs_dir2_leaf_addname()
866 bestsp--; in xfs_dir2_leaf_addname()
867 memmove(&bestsp[0], &bestsp[1], in xfs_dir2_leaf_addname()
868 be32_to_cpu(ltp->bestcount) * sizeof(bestsp[0])); in xfs_dir2_leaf_addname()
881 bestsp[use_block] = bf[0].length; in xfs_dir2_leaf_addname()
940 if (be16_to_cpu(bestsp[use_block]) != be16_to_cpu(bf[0].length)) { in xfs_dir2_leaf_addname()
941 bestsp[use_block] = bf[0].length; in xfs_dir2_leaf_addname()
1402 __be16 *bestsp; /* leaf block best freespace */ in xfs_dir2_leaf_removename() local
1446 bestsp = xfs_dir2_leaf_bests_p(ltp); in xfs_dir2_leaf_removename()
1447 if (be16_to_cpu(bestsp[db]) != oldbest) { in xfs_dir2_leaf_removename()
1483 bestsp[db] = bf[0].length; in xfs_dir2_leaf_removename()
1515 if (bestsp[i] != cpu_to_be16(NULLDATAOFF)) in xfs_dir2_leaf_removename()
1522 memmove(&bestsp[db - i], bestsp, in xfs_dir2_leaf_removename()
1523 (be32_to_cpu(ltp->bestcount) - (db - i)) * sizeof(*bestsp)); in xfs_dir2_leaf_removename()
1529 bestsp[db] = cpu_to_be16(NULLDATAOFF); in xfs_dir2_leaf_removename()
1656 __be16 *bestsp; /* leaf bests table */ in xfs_dir2_leaf_trim_data() local
1702 bestsp = xfs_dir2_leaf_bests_p(ltp); in xfs_dir2_leaf_trim_data()
1704 memmove(&bestsp[1], &bestsp[0], be32_to_cpu(ltp->bestcount) * sizeof(*bestsp)); in xfs_dir2_leaf_trim_data()