Home
last modified time | relevance | path

Searched refs:freehdr (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.10/fs/xfs/libxfs/
Dxfs_dir2_node.c420 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()
[all …]
Dxfs_dir2_leaf.c1686 struct xfs_dir3_icfree_hdr freehdr; in xfs_dir2_node_to_leaf() local
1747 xfs_dir2_free_hdr_from_disk(mp, &freehdr, fbp->b_addr); in xfs_dir2_node_to_leaf()
1749 ASSERT(!freehdr.firstdb); in xfs_dir2_node_to_leaf()
1755 if (xfs_dir3_leaf_size(&leafhdr, freehdr.nvalid) > args->geo->blksize) { in xfs_dir2_node_to_leaf()
1776 ltp->bestcount = cpu_to_be32(freehdr.nvalid); in xfs_dir2_node_to_leaf()
1781 memcpy(xfs_dir2_leaf_bests_p(ltp), freehdr.bests, in xfs_dir2_node_to_leaf()
1782 freehdr.nvalid * sizeof(xfs_dir2_data_off_t)); in xfs_dir2_node_to_leaf()
/Linux-v5.10/fs/xfs/scrub/
Ddir.c598 struct xfs_dir3_icfree_hdr freehdr; in xchk_directory_free_bestfree() local
620 xfs_dir2_free_hdr_from_disk(sc->ip->i_mount, &freehdr, bp->b_addr); in xchk_directory_free_bestfree()
621 for (i = 0; i < freehdr.nvalid; i++) { in xchk_directory_free_bestfree()
622 best = be16_to_cpu(freehdr.bests[i]); in xchk_directory_free_bestfree()
628 (freehdr.firstdb + i) * args->geo->fsbcount, in xchk_directory_free_bestfree()
637 if (freehdr.nused + stale != freehdr.nvalid) in xchk_directory_free_bestfree()