Lines Matching refs:nodehdr1
872 struct xfs_da3_icnode_hdr nodehdr1; in xfs_da3_node_rebalance() local
884 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr1, node1); in xfs_da3_node_rebalance()
886 btree1 = nodehdr1.btree; in xfs_da3_node_rebalance()
893 if (nodehdr1.count > 0 && nodehdr2.count > 0 && in xfs_da3_node_rebalance()
896 be32_to_cpu(btree1[nodehdr1.count - 1].hashval)))) { in xfs_da3_node_rebalance()
900 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr1, node1); in xfs_da3_node_rebalance()
902 btree1 = nodehdr1.btree; in xfs_da3_node_rebalance()
907 count = (nodehdr1.count - nodehdr2.count) / 2; in xfs_da3_node_rebalance()
932 btree_s = &btree1[nodehdr1.count - count]; in xfs_da3_node_rebalance()
935 nodehdr1.count -= count; in xfs_da3_node_rebalance()
944 btree_d = &btree1[nodehdr1.count]; in xfs_da3_node_rebalance()
946 nodehdr1.count += count; in xfs_da3_node_rebalance()
965 xfs_da3_node_hdr_to_disk(dp->i_mount, node1, &nodehdr1); in xfs_da3_node_rebalance()
983 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr1, node1); in xfs_da3_node_rebalance()
985 btree1 = nodehdr1.btree; in xfs_da3_node_rebalance()
988 blk1->hashval = be32_to_cpu(btree1[nodehdr1.count - 1].hashval); in xfs_da3_node_rebalance()
994 if (blk1->index >= nodehdr1.count) { in xfs_da3_node_rebalance()
995 blk2->index = blk1->index - nodehdr1.count; in xfs_da3_node_rebalance()
996 blk1->index = nodehdr1.count + 1; /* make it invalid */ in xfs_da3_node_rebalance()