Lines Matching refs:bestsp
89 xfs_dir2_data_off_t *bestsp; /* leaf's bestsp entries */ in xfs_dir2_block_to_leaf() local
165 bestsp = XFS_DIR2_LEAF_BESTS_P_ARCH(ltp, ARCH_CONVERT); in xfs_dir2_block_to_leaf()
166 INT_COPY(bestsp[0], block->hdr.bestfree[0].length, ARCH_CONVERT); in xfs_dir2_block_to_leaf()
186 xfs_dir2_data_off_t *bestsp; /* freespace table in leaf */ in xfs_dir2_leaf_addname() local
236 bestsp = XFS_DIR2_LEAF_BESTS_P_ARCH(ltp, ARCH_CONVERT); in xfs_dir2_leaf_addname()
251 ASSERT(INT_GET(bestsp[i], ARCH_CONVERT) != NULLDATAOFF); in xfs_dir2_leaf_addname()
252 if (INT_GET(bestsp[i], ARCH_CONVERT) >= length) { in xfs_dir2_leaf_addname()
265 if (INT_GET(bestsp[i], ARCH_CONVERT) == NULLDATAOFF && use_block == -1) in xfs_dir2_leaf_addname()
267 else if (INT_GET(bestsp[i], ARCH_CONVERT) >= length) { in xfs_dir2_leaf_addname()
283 if (use_block != -1 && INT_GET(bestsp[use_block], ARCH_CONVERT) == NULLDATAOFF) in xfs_dir2_leaf_addname()
289 if ((char *)bestsp - (char *)&leaf->ents[INT_GET(leaf->hdr.count, ARCH_CONVERT)] < needbytes && in xfs_dir2_leaf_addname()
297 else if ((char *)bestsp - (char *)&leaf->ents[INT_GET(leaf->hdr.count, ARCH_CONVERT)] < in xfs_dir2_leaf_addname()
382 bestsp--; in xfs_dir2_leaf_addname()
383 memmove(&bestsp[0], &bestsp[1], in xfs_dir2_leaf_addname()
384 INT_GET(ltp->bestcount, ARCH_CONVERT) * sizeof(bestsp[0])); in xfs_dir2_leaf_addname()
395 INT_COPY(bestsp[use_block], data->hdr.bestfree[0].length, ARCH_CONVERT); in xfs_dir2_leaf_addname()
450 …if (INT_GET(bestsp[use_block], ARCH_CONVERT) != INT_GET(data->hdr.bestfree[0].length, ARCH_CONVERT… in xfs_dir2_leaf_addname()
451 INT_COPY(bestsp[use_block], data->hdr.bestfree[0].length, ARCH_CONVERT); in xfs_dir2_leaf_addname()
1458 xfs_dir2_data_off_t *bestsp; /* leaf block best freespace */ in xfs_dir2_leaf_removename() local
1500 bestsp = XFS_DIR2_LEAF_BESTS_P_ARCH(ltp, ARCH_CONVERT); in xfs_dir2_leaf_removename()
1501 ASSERT(INT_GET(bestsp[db], ARCH_CONVERT) == oldbest); in xfs_dir2_leaf_removename()
1528 INT_COPY(bestsp[db], data->hdr.bestfree[0].length, ARCH_CONVERT); in xfs_dir2_leaf_removename()
1563 if (INT_GET(bestsp[i], ARCH_CONVERT) != NULLDATAOFF) in xfs_dir2_leaf_removename()
1570 memmove(&bestsp[db - i], bestsp, in xfs_dir2_leaf_removename()
1571 (INT_GET(ltp->bestcount, ARCH_CONVERT) - (db - i)) * sizeof(*bestsp)); in xfs_dir2_leaf_removename()
1576 INT_SET(bestsp[db], ARCH_CONVERT, NULLDATAOFF); in xfs_dir2_leaf_removename()
1705 xfs_dir2_data_off_t *bestsp; /* leaf bests table */ in xfs_dir2_leaf_trim_data() local
1752 bestsp = XFS_DIR2_LEAF_BESTS_P_ARCH(ltp, ARCH_CONVERT); in xfs_dir2_leaf_trim_data()
1754 memmove(&bestsp[1], &bestsp[0], INT_GET(ltp->bestcount, ARCH_CONVERT) * sizeof(*bestsp)); in xfs_dir2_leaf_trim_data()