Lines Matching refs:hdr2
921 struct xfs_dir3_icleaf_hdr hdr2; in xfs_dir2_leafn_order() local
924 dp->d_ops->leaf_hdr_from_disk(&hdr2, leaf2); in xfs_dir2_leafn_order()
928 if (hdr1.count > 0 && hdr2.count > 0 && in xfs_dir2_leafn_order()
930 be32_to_cpu(ents2[hdr2.count - 1].hashval) < in xfs_dir2_leafn_order()
963 struct xfs_dir3_icleaf_hdr hdr2; in xfs_dir2_leafn_rebalance() local
980 dp->d_ops->leaf_hdr_from_disk(&hdr2, leaf2); 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()
1018 &hdr2, ents2, 0, count); in xfs_dir2_leafn_rebalance()
1020 xfs_dir3_leafn_moveents(args, blk2->bp, &hdr2, ents2, 0, 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()
1029 dp->d_ops->leaf_hdr_to_disk(leaf2, &hdr2); 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()
1441 struct xfs_dir3_icleaf_hdr hdr2; in xfs_dir2_leafn_toosmall() local
1462 dp->d_ops->leaf_hdr_from_disk(&hdr2, leaf); in xfs_dir2_leafn_toosmall()
1464 count += hdr2.count - hdr2.stale; in xfs_dir2_leafn_toosmall()