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