Lines Matching refs:bestsp

378 	__be16			*bestsp;	/* leaf's bestsp entries */  in xfs_dir2_block_to_leaf()  local
467 bestsp = xfs_dir2_leaf_bests_p(ltp); in xfs_dir2_block_to_leaf()
468 bestsp[0] = bf[0].length; in xfs_dir2_block_to_leaf()
610 __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()
879 if (be16_to_cpu(bestsp[use_block]) != be16_to_cpu(bf[0].length)) { in xfs_dir2_leaf_addname()
880 bestsp[use_block] = bf[0].length; in xfs_dir2_leaf_addname()
1340 __be16 *bestsp; /* leaf block best freespace */ in xfs_dir2_leaf_removename() local
1384 bestsp = xfs_dir2_leaf_bests_p(ltp); in xfs_dir2_leaf_removename()
1385 if (be16_to_cpu(bestsp[db]) != oldbest) { in xfs_dir2_leaf_removename()
1419 bestsp[db] = bf[0].length; in xfs_dir2_leaf_removename()
1451 if (bestsp[i] != cpu_to_be16(NULLDATAOFF)) in xfs_dir2_leaf_removename()
1458 memmove(&bestsp[db - i], bestsp, in xfs_dir2_leaf_removename()
1459 (be32_to_cpu(ltp->bestcount) - (db - i)) * sizeof(*bestsp)); in xfs_dir2_leaf_removename()
1465 bestsp[db] = cpu_to_be16(NULLDATAOFF); in xfs_dir2_leaf_removename()
1592 __be16 *bestsp; /* leaf bests table */ in xfs_dir2_leaf_trim_data() local
1637 bestsp = xfs_dir2_leaf_bests_p(ltp); 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()