Lines Matching refs:bestsp

374 	__be16			*bestsp;	/* leaf's bestsp entries */  in xfs_dir2_block_to_leaf()  local
464 bestsp = xfs_dir2_leaf_bests_p(ltp); in xfs_dir2_block_to_leaf()
465 bestsp[0] = bf[0].length; in xfs_dir2_block_to_leaf()
605 __be16 *bestsp; /* freespace table in leaf */ in xfs_dir2_leaf_addname() local
655 bestsp = xfs_dir2_leaf_bests_p(ltp); in xfs_dir2_leaf_addname()
671 ASSERT(bestsp[i] != cpu_to_be16(NULLDATAOFF)); in xfs_dir2_leaf_addname()
672 if (be16_to_cpu(bestsp[i]) >= length) { in xfs_dir2_leaf_addname()
685 if (bestsp[i] == cpu_to_be16(NULLDATAOFF) && in xfs_dir2_leaf_addname()
688 else if (be16_to_cpu(bestsp[i]) >= length) { in xfs_dir2_leaf_addname()
707 if (use_block != -1 && bestsp[use_block] == cpu_to_be16(NULLDATAOFF)) in xfs_dir2_leaf_addname()
713 if ((char *)bestsp - (char *)&ents[leafhdr.count] < needbytes && in xfs_dir2_leaf_addname()
721 else if ((char *)bestsp - (char *)&ents[leafhdr.count] < needbytes) { in xfs_dir2_leaf_addname()
805 bestsp--; in xfs_dir2_leaf_addname()
806 memmove(&bestsp[0], &bestsp[1], in xfs_dir2_leaf_addname()
807 be32_to_cpu(ltp->bestcount) * sizeof(bestsp[0])); in xfs_dir2_leaf_addname()
820 bestsp[use_block] = bf[0].length; in xfs_dir2_leaf_addname()
876 if (be16_to_cpu(bestsp[use_block]) != be16_to_cpu(bf[0].length)) { in xfs_dir2_leaf_addname()
877 bestsp[use_block] = bf[0].length; in xfs_dir2_leaf_addname()
1340 __be16 *bestsp; /* leaf block best freespace */ in xfs_dir2_leaf_removename() local
1385 bestsp = xfs_dir2_leaf_bests_p(ltp); in xfs_dir2_leaf_removename()
1386 ASSERT(be16_to_cpu(bestsp[db]) == oldbest); in xfs_dir2_leaf_removename()
1416 bestsp[db] = bf[0].length; in xfs_dir2_leaf_removename()
1448 if (bestsp[i] != cpu_to_be16(NULLDATAOFF)) in xfs_dir2_leaf_removename()
1455 memmove(&bestsp[db - i], bestsp, in xfs_dir2_leaf_removename()
1456 (be32_to_cpu(ltp->bestcount) - (db - i)) * sizeof(*bestsp)); in xfs_dir2_leaf_removename()
1462 bestsp[db] = cpu_to_be16(NULLDATAOFF); in xfs_dir2_leaf_removename()
1594 __be16 *bestsp; /* leaf bests table */ in xfs_dir2_leaf_trim_data() local
1639 bestsp = xfs_dir2_leaf_bests_p(ltp); in xfs_dir2_leaf_trim_data()
1641 memmove(&bestsp[1], &bestsp[0], be32_to_cpu(ltp->bestcount) * sizeof(*bestsp)); in xfs_dir2_leaf_trim_data()