Lines Matching refs:findex

1184 	int			findex,  in xfs_dir3_data_block_free()  argument
1198 freehdr.bests[findex] = cpu_to_be16(longest); in xfs_dir3_data_block_free()
1199 xfs_dir2_free_log_bests(args, &freehdr, fbp, findex, findex); in xfs_dir3_data_block_free()
1211 if (findex == freehdr.nvalid - 1) { in xfs_dir3_data_block_free()
1214 for (i = findex - 1; i >= 0; i--) { in xfs_dir3_data_block_free()
1222 freehdr.bests[findex] = cpu_to_be16(NULLDATAOFF); in xfs_dir3_data_block_free()
1251 xfs_dir2_free_log_bests(args, &freehdr, fbp, findex, findex); in xfs_dir3_data_block_free()
1345 int findex; /* index in freeblock entries */ in xfs_dir2_leafn_remove() local
1370 findex = xfs_dir2_db_to_fdindex(geo, db); in xfs_dir2_leafn_remove()
1398 fdb, findex, fbp, longest); in xfs_dir2_leafn_remove()
1684 int *findex) in xfs_dir2_node_add_datablk() argument
1760 *findex = xfs_dir2_db_to_fdindex(args->geo, *dbno); in xfs_dir2_node_add_datablk()
1763 if (*findex >= hdr->nvalid) { in xfs_dir2_node_add_datablk()
1764 ASSERT(*findex < args->geo->free_max_bests); in xfs_dir2_node_add_datablk()
1765 hdr->nvalid = *findex + 1; in xfs_dir2_node_add_datablk()
1766 hdr->bests[*findex] = cpu_to_be16(NULLDATAOFF); in xfs_dir2_node_add_datablk()
1773 if (hdr->bests[*findex] == cpu_to_be16(NULLDATAOFF)) { in xfs_dir2_node_add_datablk()
1781 hdr->bests[*findex] = bf[0].length; in xfs_dir2_node_add_datablk()
1807 int findex = 0; in xfs_dir2_node_find_freeblk() local
1817 findex = fblk->index; in xfs_dir2_node_find_freeblk()
1819 if (findex >= 0) { in xfs_dir2_node_find_freeblk()
1821 ASSERT(findex < hdr->nvalid); in xfs_dir2_node_find_freeblk()
1822 ASSERT(be16_to_cpu(hdr->bests[findex]) != NULLDATAOFF); in xfs_dir2_node_find_freeblk()
1823 ASSERT(be16_to_cpu(hdr->bests[findex]) >= length); in xfs_dir2_node_find_freeblk()
1824 dbno = hdr->firstdb + findex; in xfs_dir2_node_find_freeblk()
1869 for (findex = hdr->nvalid - 1; findex >= 0; findex--) { in xfs_dir2_node_find_freeblk()
1870 if (be16_to_cpu(hdr->bests[findex]) != NULLDATAOFF && in xfs_dir2_node_find_freeblk()
1871 be16_to_cpu(hdr->bests[findex]) >= length) { in xfs_dir2_node_find_freeblk()
1872 dbno = hdr->firstdb + findex; in xfs_dir2_node_find_freeblk()
1884 *findexp = findex; in xfs_dir2_node_find_freeblk()
1910 int findex; /* freespace entry index */ in xfs_dir2_node_addname_int() local
1919 &findex, length); in xfs_dir2_node_addname_int()
1941 &freehdr, &findex); in xfs_dir2_node_addname_int()
1986 if (freehdr.bests[findex] != bf[0].length) { in xfs_dir2_node_addname_int()
1987 freehdr.bests[findex] = bf[0].length; in xfs_dir2_node_addname_int()
1993 xfs_dir2_free_log_bests(args, &freehdr, fbp, findex, findex); in xfs_dir2_node_addname_int()