Lines Matching refs:hdr1

976 	struct xfs_dir3_icleaf_hdr hdr1;  in xfs_dir2_leafn_order()  local
979 dp->d_ops->leaf_hdr_from_disk(&hdr1, leaf1); in xfs_dir2_leafn_order()
984 if (hdr1.count > 0 && hdr2.count > 0 && in xfs_dir2_leafn_order()
987 be32_to_cpu(ents1[hdr1.count - 1].hashval))) in xfs_dir2_leafn_order()
1018 struct xfs_dir3_icleaf_hdr hdr1; in xfs_dir2_leafn_rebalance() local
1032 dp->d_ops->leaf_hdr_from_disk(&hdr1, leaf1); in xfs_dir2_leafn_rebalance()
1037 oldsum = hdr1.count + hdr2.count; in xfs_dir2_leafn_rebalance()
1039 oldstale = hdr1.stale + hdr2.stale; in xfs_dir2_leafn_rebalance()
1050 if (mid >= hdr1.count) in xfs_dir2_leafn_rebalance()
1051 midhash = be32_to_cpu(ents2[mid - hdr1.count].hashval); in xfs_dir2_leafn_rebalance()
1067 count = hdr1.count - mid + (isleft == 0); in xfs_dir2_leafn_rebalance()
1069 xfs_dir3_leafn_moveents(args, blk1->bp, &hdr1, ents1, in xfs_dir2_leafn_rebalance()
1070 hdr1.count - count, blk2->bp, in xfs_dir2_leafn_rebalance()
1074 blk1->bp, &hdr1, ents1, in xfs_dir2_leafn_rebalance()
1075 hdr1.count, count); in xfs_dir2_leafn_rebalance()
1077 ASSERT(hdr1.count + hdr2.count == oldsum); in xfs_dir2_leafn_rebalance()
1078 ASSERT(hdr1.stale + hdr2.stale == oldstale); in xfs_dir2_leafn_rebalance()
1081 dp->d_ops->leaf_hdr_to_disk(leaf1, &hdr1); in xfs_dir2_leafn_rebalance()
1092 if (hdr1.count < hdr2.count) in xfs_dir2_leafn_rebalance()
1094 else if (hdr1.count > hdr2.count) in xfs_dir2_leafn_rebalance()
1097 state->inleaf = swap_blocks ^ (blk1->index <= hdr1.count); in xfs_dir2_leafn_rebalance()
1102 blk2->index = blk1->index - hdr1.count; in xfs_dir2_leafn_rebalance()