Lines Matching refs:hdr1

920 	struct xfs_dir3_icleaf_hdr hdr1;  in xfs_dir2_leafn_order()  local
923 dp->d_ops->leaf_hdr_from_disk(&hdr1, leaf1); in xfs_dir2_leafn_order()
928 if (hdr1.count > 0 && hdr2.count > 0 && in xfs_dir2_leafn_order()
931 be32_to_cpu(ents1[hdr1.count - 1].hashval))) in xfs_dir2_leafn_order()
962 struct xfs_dir3_icleaf_hdr hdr1; in xfs_dir2_leafn_rebalance() local
979 dp->d_ops->leaf_hdr_from_disk(&hdr1, leaf1); in xfs_dir2_leafn_rebalance()
984 oldsum = hdr1.count + hdr2.count; in xfs_dir2_leafn_rebalance()
986 oldstale = hdr1.stale + hdr2.stale; in xfs_dir2_leafn_rebalance()
997 if (mid >= hdr1.count) in xfs_dir2_leafn_rebalance()
998 midhash = be32_to_cpu(ents2[mid - hdr1.count].hashval); in xfs_dir2_leafn_rebalance()
1014 count = hdr1.count - mid + (isleft == 0); in xfs_dir2_leafn_rebalance()
1016 xfs_dir3_leafn_moveents(args, blk1->bp, &hdr1, ents1, in xfs_dir2_leafn_rebalance()
1017 hdr1.count - count, blk2->bp, in xfs_dir2_leafn_rebalance()
1021 blk1->bp, &hdr1, ents1, in xfs_dir2_leafn_rebalance()
1022 hdr1.count, count); in xfs_dir2_leafn_rebalance()
1024 ASSERT(hdr1.count + hdr2.count == oldsum); in xfs_dir2_leafn_rebalance()
1025 ASSERT(hdr1.stale + hdr2.stale == oldstale); in xfs_dir2_leafn_rebalance()
1028 dp->d_ops->leaf_hdr_to_disk(leaf1, &hdr1); in xfs_dir2_leafn_rebalance()
1039 if (hdr1.count < hdr2.count) in xfs_dir2_leafn_rebalance()
1041 else if (hdr1.count > hdr2.count) in xfs_dir2_leafn_rebalance()
1044 state->inleaf = swap ^ (blk1->index <= hdr1.count); in xfs_dir2_leafn_rebalance()
1049 blk2->index = blk1->index - hdr1.count; in xfs_dir2_leafn_rebalance()