Lines Matching refs:hdr1
924 struct xfs_dir3_icleaf_hdr hdr1; in xfs_dir2_leafn_order() local
927 dp->d_ops->leaf_hdr_from_disk(&hdr1, leaf1); in xfs_dir2_leafn_order()
932 if (hdr1.count > 0 && hdr2.count > 0 && in xfs_dir2_leafn_order()
935 be32_to_cpu(ents1[hdr1.count - 1].hashval))) in xfs_dir2_leafn_order()
966 struct xfs_dir3_icleaf_hdr hdr1; in xfs_dir2_leafn_rebalance() local
983 dp->d_ops->leaf_hdr_from_disk(&hdr1, leaf1); in xfs_dir2_leafn_rebalance()
988 oldsum = hdr1.count + hdr2.count; in xfs_dir2_leafn_rebalance()
990 oldstale = hdr1.stale + hdr2.stale; in xfs_dir2_leafn_rebalance()
1001 if (mid >= hdr1.count) in xfs_dir2_leafn_rebalance()
1002 midhash = be32_to_cpu(ents2[mid - hdr1.count].hashval); in xfs_dir2_leafn_rebalance()
1018 count = hdr1.count - mid + (isleft == 0); in xfs_dir2_leafn_rebalance()
1020 xfs_dir3_leafn_moveents(args, blk1->bp, &hdr1, ents1, in xfs_dir2_leafn_rebalance()
1021 hdr1.count - count, blk2->bp, in xfs_dir2_leafn_rebalance()
1025 blk1->bp, &hdr1, ents1, in xfs_dir2_leafn_rebalance()
1026 hdr1.count, count); in xfs_dir2_leafn_rebalance()
1028 ASSERT(hdr1.count + hdr2.count == oldsum); in xfs_dir2_leafn_rebalance()
1029 ASSERT(hdr1.stale + hdr2.stale == oldstale); in xfs_dir2_leafn_rebalance()
1032 dp->d_ops->leaf_hdr_to_disk(leaf1, &hdr1); in xfs_dir2_leafn_rebalance()
1043 if (hdr1.count < hdr2.count) in xfs_dir2_leafn_rebalance()
1045 else if (hdr1.count > hdr2.count) in xfs_dir2_leafn_rebalance()
1048 state->inleaf = swap ^ (blk1->index <= hdr1.count); in xfs_dir2_leafn_rebalance()
1053 blk2->index = blk1->index - hdr1.count; in xfs_dir2_leafn_rebalance()