Lines Matching refs:findex
940 int findex; /* index in freeblock entries */ in xfs_dir2_leafn_remove() local
961 findex = XFS_DIR2_DB_TO_FDINDEX(mp, db); in xfs_dir2_leafn_remove()
1002 if (findex == INT_GET(free->hdr.nvalid, ARCH_CONVERT) - 1) { in xfs_dir2_leafn_remove()
1005 for (i = findex - 1; in xfs_dir2_leafn_remove()
1016 INT_SET(free->bests[findex], ARCH_CONVERT, NULLDATAOFF); in xfs_dir2_leafn_remove()
1042 INT_SET(free->bests[findex], ARCH_CONVERT, longest); in xfs_dir2_leafn_remove()
1049 xfs_dir2_free_log_bests(tp, fbp, findex, findex); in xfs_dir2_leafn_remove()
1394 int findex; /* freespace entry index */ in xfs_dir2_node_addname_int() local
1423 findex = fblk->index; in xfs_dir2_node_addname_int()
1429 if (findex >= 0) { in xfs_dir2_node_addname_int()
1430 ASSERT(findex < INT_GET(free->hdr.nvalid, ARCH_CONVERT)); in xfs_dir2_node_addname_int()
1431 ASSERT(INT_GET(free->bests[findex], ARCH_CONVERT) != NULLDATAOFF); in xfs_dir2_node_addname_int()
1432 ASSERT(INT_GET(free->bests[findex], ARCH_CONVERT) >= length); in xfs_dir2_node_addname_int()
1433 dbno = INT_GET(free->hdr.firstdb, ARCH_CONVERT) + findex; in xfs_dir2_node_addname_int()
1441 findex = 0; in xfs_dir2_node_addname_int()
1450 findex = 0; in xfs_dir2_node_addname_int()
1507 findex = 0; in xfs_dir2_node_addname_int()
1512 if (INT_GET(free->bests[findex], ARCH_CONVERT) != NULLDATAOFF && in xfs_dir2_node_addname_int()
1513 INT_GET(free->bests[findex], ARCH_CONVERT) >= length) in xfs_dir2_node_addname_int()
1514 dbno = INT_GET(free->hdr.firstdb, ARCH_CONVERT) + findex; in xfs_dir2_node_addname_int()
1519 if (++findex == INT_GET(free->hdr.nvalid, ARCH_CONVERT)) { in xfs_dir2_node_addname_int()
1647 findex = XFS_DIR2_DB_TO_FDINDEX(mp, dbno); in xfs_dir2_node_addname_int()
1652 if (findex >= INT_GET(free->hdr.nvalid, ARCH_CONVERT)) { in xfs_dir2_node_addname_int()
1653 ASSERT(findex < XFS_DIR2_MAX_FREE_BESTS(mp)); in xfs_dir2_node_addname_int()
1654 INT_SET(free->hdr.nvalid, ARCH_CONVERT, findex + 1); in xfs_dir2_node_addname_int()
1658 INT_SET(free->bests[findex], ARCH_CONVERT, NULLDATAOFF); in xfs_dir2_node_addname_int()
1664 if (INT_GET(free->bests[findex], ARCH_CONVERT) == NULLDATAOFF) { in xfs_dir2_node_addname_int()
1674 INT_COPY(free->bests[findex], data->hdr.bestfree[0].length, ARCH_CONVERT); in xfs_dir2_node_addname_int()
1738 …if (INT_GET(free->bests[findex], ARCH_CONVERT) != INT_GET(data->hdr.bestfree[0].length, ARCH_CONVE… in xfs_dir2_node_addname_int()
1739 INT_COPY(free->bests[findex], data->hdr.bestfree[0].length, ARCH_CONVERT); in xfs_dir2_node_addname_int()
1746 xfs_dir2_free_log_bests(tp, fbp, findex, findex); in xfs_dir2_node_addname_int()