Lines Matching refs:hdr1

977 	struct xfs_dir3_icleaf_hdr hdr1;  in xfs_dir2_leafn_order()  local
980 dp->d_ops->leaf_hdr_from_disk(&hdr1, leaf1); in xfs_dir2_leafn_order()
985 if (hdr1.count > 0 && hdr2.count > 0 && in xfs_dir2_leafn_order()
988 be32_to_cpu(ents1[hdr1.count - 1].hashval))) in xfs_dir2_leafn_order()
1019 struct xfs_dir3_icleaf_hdr hdr1; in xfs_dir2_leafn_rebalance() local
1033 dp->d_ops->leaf_hdr_from_disk(&hdr1, leaf1); in xfs_dir2_leafn_rebalance()
1038 oldsum = hdr1.count + hdr2.count; in xfs_dir2_leafn_rebalance()
1040 oldstale = hdr1.stale + hdr2.stale; in xfs_dir2_leafn_rebalance()
1051 if (mid >= hdr1.count) in xfs_dir2_leafn_rebalance()
1052 midhash = be32_to_cpu(ents2[mid - hdr1.count].hashval); in xfs_dir2_leafn_rebalance()
1068 count = hdr1.count - mid + (isleft == 0); in xfs_dir2_leafn_rebalance()
1070 xfs_dir3_leafn_moveents(args, blk1->bp, &hdr1, ents1, in xfs_dir2_leafn_rebalance()
1071 hdr1.count - count, blk2->bp, in xfs_dir2_leafn_rebalance()
1075 blk1->bp, &hdr1, ents1, in xfs_dir2_leafn_rebalance()
1076 hdr1.count, count); in xfs_dir2_leafn_rebalance()
1078 ASSERT(hdr1.count + hdr2.count == oldsum); in xfs_dir2_leafn_rebalance()
1079 ASSERT(hdr1.stale + hdr2.stale == oldstale); in xfs_dir2_leafn_rebalance()
1082 dp->d_ops->leaf_hdr_to_disk(leaf1, &hdr1); in xfs_dir2_leafn_rebalance()
1093 if (hdr1.count < hdr2.count) in xfs_dir2_leafn_rebalance()
1095 else if (hdr1.count > hdr2.count) in xfs_dir2_leafn_rebalance()
1098 state->inleaf = swap_blocks ^ (blk1->index <= hdr1.count); in xfs_dir2_leafn_rebalance()
1103 blk2->index = blk1->index - hdr1.count; in xfs_dir2_leafn_rebalance()