Lines Matching refs:freehdr

420 	struct xfs_dir3_icfree_hdr freehdr;  in xfs_dir2_leaf_to_node()  local
440 xfs_dir2_free_hdr_from_disk(dp->i_mount, &freehdr, fbp->b_addr); in xfs_dir2_leaf_to_node()
458 freehdr.bests[i] = cpu_to_be16(off); in xfs_dir2_leaf_to_node()
464 freehdr.nused = n; in xfs_dir2_leaf_to_node()
465 freehdr.nvalid = be32_to_cpu(ltp->bestcount); in xfs_dir2_leaf_to_node()
467 xfs_dir2_free_hdr_to_disk(dp->i_mount, fbp->b_addr, &freehdr); in xfs_dir2_leaf_to_node()
468 xfs_dir2_free_log_bests(args, &freehdr, fbp, 0, freehdr.nvalid - 1); in xfs_dir2_leaf_to_node()
698 struct xfs_dir3_icfree_hdr freehdr; in xfs_dir2_leafn_lookup_for_addname() local
733 xfs_dir2_free_hdr_from_disk(mp, &freehdr, free); in xfs_dir2_leafn_lookup_for_addname()
735 freehdr.bests[fi] == in xfs_dir2_leafn_lookup_for_addname()
742 if (be16_to_cpu(freehdr.bests[fi]) >= length) in xfs_dir2_leafn_lookup_for_addname()
1189 struct xfs_dir3_icfree_hdr freehdr; in xfs_dir3_data_block_free() local
1192 xfs_dir2_free_hdr_from_disk(dp->i_mount, &freehdr, free); in xfs_dir3_data_block_free()
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()
1204 freehdr.nused--; in xfs_dir3_data_block_free()
1211 if (findex == freehdr.nvalid - 1) { in xfs_dir3_data_block_free()
1215 if (freehdr.bests[i] != cpu_to_be16(NULLDATAOFF)) in xfs_dir3_data_block_free()
1218 freehdr.nvalid = i + 1; in xfs_dir3_data_block_free()
1222 freehdr.bests[findex] = cpu_to_be16(NULLDATAOFF); in xfs_dir3_data_block_free()
1226 xfs_dir2_free_hdr_to_disk(dp->i_mount, free, &freehdr); in xfs_dir3_data_block_free()
1233 if (!freehdr.nused) { in xfs_dir3_data_block_free()
1251 xfs_dir2_free_log_bests(args, &freehdr, fbp, findex, findex); in xfs_dir3_data_block_free()
1360 struct xfs_dir3_icfree_hdr freehdr; in xfs_dir2_leafn_remove() local
1362 xfs_dir2_free_hdr_from_disk(dp->i_mount, &freehdr, free); in xfs_dir2_leafn_remove()
1363 ASSERT(freehdr.firstdb == geo->free_max_bests * in xfs_dir2_leafn_remove()
1904 struct xfs_dir3_icfree_hdr freehdr; in xfs_dir2_node_addname_int() local
1918 error = xfs_dir2_node_find_freeblk(args, fblk, &dbno, &fbp, &freehdr, 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()
2288 struct xfs_dir3_icfree_hdr freehdr; in xfs_dir2_node_trim_free() local
2308 xfs_dir2_free_hdr_from_disk(dp->i_mount, &freehdr, free); in xfs_dir2_node_trim_free()
2313 if (freehdr.nused > 0) { in xfs_dir2_node_trim_free()