Lines Matching refs:nodehdr1
761 struct xfs_da3_icnode_hdr nodehdr1; in xfs_da3_node_rebalance() local
773 dp->d_ops->node_hdr_from_disk(&nodehdr1, node1); in xfs_da3_node_rebalance()
782 if (nodehdr1.count > 0 && nodehdr2.count > 0 && in xfs_da3_node_rebalance()
785 be32_to_cpu(btree1[nodehdr1.count - 1].hashval)))) { in xfs_da3_node_rebalance()
789 dp->d_ops->node_hdr_from_disk(&nodehdr1, node1); in xfs_da3_node_rebalance()
796 count = (nodehdr1.count - nodehdr2.count) / 2; in xfs_da3_node_rebalance()
821 btree_s = &btree1[nodehdr1.count - count]; in xfs_da3_node_rebalance()
824 nodehdr1.count -= count; in xfs_da3_node_rebalance()
833 btree_d = &btree1[nodehdr1.count]; in xfs_da3_node_rebalance()
835 nodehdr1.count += count; in xfs_da3_node_rebalance()
854 dp->d_ops->node_hdr_to_disk(node1, &nodehdr1); in xfs_da3_node_rebalance()
871 dp->d_ops->node_hdr_from_disk(&nodehdr1, node1); in xfs_da3_node_rebalance()
876 blk1->hashval = be32_to_cpu(btree1[nodehdr1.count - 1].hashval); in xfs_da3_node_rebalance()
882 if (blk1->index >= nodehdr1.count) { in xfs_da3_node_rebalance()
883 blk2->index = blk1->index - nodehdr1.count; in xfs_da3_node_rebalance()
884 blk1->index = nodehdr1.count + 1; /* make it invalid */ in xfs_da3_node_rebalance()