Lines Matching refs:nodehdr1
940 struct xfs_da3_icnode_hdr nodehdr1; in xfs_da3_node_rebalance() local
952 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr1, node1); in xfs_da3_node_rebalance()
954 btree1 = nodehdr1.btree; in xfs_da3_node_rebalance()
961 if (nodehdr1.count > 0 && nodehdr2.count > 0 && in xfs_da3_node_rebalance()
964 be32_to_cpu(btree1[nodehdr1.count - 1].hashval)))) { in xfs_da3_node_rebalance()
966 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr1, node1); in xfs_da3_node_rebalance()
968 btree1 = nodehdr1.btree; in xfs_da3_node_rebalance()
973 count = (nodehdr1.count - nodehdr2.count) / 2; in xfs_da3_node_rebalance()
998 btree_s = &btree1[nodehdr1.count - count]; in xfs_da3_node_rebalance()
1001 nodehdr1.count -= count; in xfs_da3_node_rebalance()
1010 btree_d = &btree1[nodehdr1.count]; in xfs_da3_node_rebalance()
1012 nodehdr1.count += count; in xfs_da3_node_rebalance()
1031 xfs_da3_node_hdr_to_disk(dp->i_mount, node1, &nodehdr1); in xfs_da3_node_rebalance()
1049 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr1, node1); in xfs_da3_node_rebalance()
1051 btree1 = nodehdr1.btree; in xfs_da3_node_rebalance()
1054 blk1->hashval = be32_to_cpu(btree1[nodehdr1.count - 1].hashval); in xfs_da3_node_rebalance()
1060 if (blk1->index >= nodehdr1.count) { in xfs_da3_node_rebalance()
1061 blk2->index = blk1->index - nodehdr1.count; in xfs_da3_node_rebalance()
1062 blk1->index = nodehdr1.count + 1; /* make it invalid */ in xfs_da3_node_rebalance()