Lines Matching refs:bestsp

65 	__be16			*bestsp;	/* leaf's bestsp entries */  in xfs_dir2_block_to_leaf()  local
141 bestsp = xfs_dir2_leaf_bests_p(ltp); in xfs_dir2_block_to_leaf()
142 bestsp[0] = block->hdr.bestfree[0].length; in xfs_dir2_block_to_leaf()
162 __be16 *bestsp; /* freespace table in leaf */ in xfs_dir2_leaf_addname() local
213 bestsp = xfs_dir2_leaf_bests_p(ltp); in xfs_dir2_leaf_addname()
228 ASSERT(be16_to_cpu(bestsp[i]) != NULLDATAOFF); in xfs_dir2_leaf_addname()
229 if (be16_to_cpu(bestsp[i]) >= length) { in xfs_dir2_leaf_addname()
242 if (be16_to_cpu(bestsp[i]) == NULLDATAOFF && use_block == -1) in xfs_dir2_leaf_addname()
244 else if (be16_to_cpu(bestsp[i]) >= length) { in xfs_dir2_leaf_addname()
260 if (use_block != -1 && be16_to_cpu(bestsp[use_block]) == NULLDATAOFF) in xfs_dir2_leaf_addname()
266 if ((char *)bestsp - (char *)&leaf->ents[be16_to_cpu(leaf->hdr.count)] < in xfs_dir2_leaf_addname()
274 else if ((char *)bestsp - (char *)&leaf->ents[be16_to_cpu( in xfs_dir2_leaf_addname()
360 bestsp--; in xfs_dir2_leaf_addname()
361 memmove(&bestsp[0], &bestsp[1], in xfs_dir2_leaf_addname()
362 be32_to_cpu(ltp->bestcount) * sizeof(bestsp[0])); in xfs_dir2_leaf_addname()
373 bestsp[use_block] = data->hdr.bestfree[0].length; in xfs_dir2_leaf_addname()
428 if (be16_to_cpu(bestsp[use_block]) != be16_to_cpu(data->hdr.bestfree[0].length)) { in xfs_dir2_leaf_addname()
429 bestsp[use_block] = data->hdr.bestfree[0].length; in xfs_dir2_leaf_addname()
1439 __be16 *bestsp; /* leaf block best freespace */ in xfs_dir2_leaf_removename() local
1482 bestsp = xfs_dir2_leaf_bests_p(ltp); in xfs_dir2_leaf_removename()
1483 ASSERT(be16_to_cpu(bestsp[db]) == oldbest); in xfs_dir2_leaf_removename()
1510 bestsp[db] = data->hdr.bestfree[0].length; in xfs_dir2_leaf_removename()
1545 if (be16_to_cpu(bestsp[i]) != NULLDATAOFF) in xfs_dir2_leaf_removename()
1552 memmove(&bestsp[db - i], bestsp, in xfs_dir2_leaf_removename()
1553 (be32_to_cpu(ltp->bestcount) - (db - i)) * sizeof(*bestsp)); in xfs_dir2_leaf_removename()
1558 bestsp[db] = cpu_to_be16(NULLDATAOFF); in xfs_dir2_leaf_removename()
1688 __be16 *bestsp; /* leaf bests table */ in xfs_dir2_leaf_trim_data() local
1735 bestsp = xfs_dir2_leaf_bests_p(ltp); in xfs_dir2_leaf_trim_data()
1737 memmove(&bestsp[1], &bestsp[0], be32_to_cpu(ltp->bestcount) * sizeof(*bestsp)); in xfs_dir2_leaf_trim_data()