Lines Matching refs:hdr1

1037 	struct xfs_dir3_icleaf_hdr hdr1;  in xfs_dir2_leafn_order()  local
1040 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &hdr1, leaf1); in xfs_dir2_leafn_order()
1042 ents1 = hdr1.ents; in xfs_dir2_leafn_order()
1045 if (hdr1.count > 0 && hdr2.count > 0 && in xfs_dir2_leafn_order()
1048 be32_to_cpu(ents1[hdr1.count - 1].hashval))) in xfs_dir2_leafn_order()
1079 struct xfs_dir3_icleaf_hdr hdr1; in xfs_dir2_leafn_rebalance() local
1093 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &hdr1, leaf1); in xfs_dir2_leafn_rebalance()
1095 ents1 = hdr1.ents; in xfs_dir2_leafn_rebalance()
1098 oldsum = hdr1.count + hdr2.count; in xfs_dir2_leafn_rebalance()
1100 oldstale = hdr1.stale + hdr2.stale; in xfs_dir2_leafn_rebalance()
1111 if (mid >= hdr1.count) in xfs_dir2_leafn_rebalance()
1112 midhash = be32_to_cpu(ents2[mid - hdr1.count].hashval); in xfs_dir2_leafn_rebalance()
1128 count = hdr1.count - mid + (isleft == 0); in xfs_dir2_leafn_rebalance()
1130 xfs_dir3_leafn_moveents(args, blk1->bp, &hdr1, ents1, in xfs_dir2_leafn_rebalance()
1131 hdr1.count - count, blk2->bp, in xfs_dir2_leafn_rebalance()
1135 blk1->bp, &hdr1, ents1, in xfs_dir2_leafn_rebalance()
1136 hdr1.count, count); in xfs_dir2_leafn_rebalance()
1138 ASSERT(hdr1.count + hdr2.count == oldsum); in xfs_dir2_leafn_rebalance()
1139 ASSERT(hdr1.stale + hdr2.stale == oldstale); in xfs_dir2_leafn_rebalance()
1142 xfs_dir2_leaf_hdr_to_disk(dp->i_mount, leaf1, &hdr1); in xfs_dir2_leafn_rebalance()
1153 if (hdr1.count < hdr2.count) in xfs_dir2_leafn_rebalance()
1155 else if (hdr1.count > hdr2.count) in xfs_dir2_leafn_rebalance()
1158 state->inleaf = swap_blocks ^ (blk1->index <= hdr1.count); in xfs_dir2_leafn_rebalance()
1163 blk2->index = blk1->index - hdr1.count; in xfs_dir2_leafn_rebalance()