Lines Matching refs:nodehdr1
871 struct xfs_da3_icnode_hdr nodehdr1; in xfs_da3_node_rebalance() local
883 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr1, node1); in xfs_da3_node_rebalance()
885 btree1 = nodehdr1.btree; in xfs_da3_node_rebalance()
892 if (nodehdr1.count > 0 && nodehdr2.count > 0 && in xfs_da3_node_rebalance()
895 be32_to_cpu(btree1[nodehdr1.count - 1].hashval)))) { in xfs_da3_node_rebalance()
897 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr1, node1); in xfs_da3_node_rebalance()
899 btree1 = nodehdr1.btree; in xfs_da3_node_rebalance()
904 count = (nodehdr1.count - nodehdr2.count) / 2; in xfs_da3_node_rebalance()
929 btree_s = &btree1[nodehdr1.count - count]; in xfs_da3_node_rebalance()
932 nodehdr1.count -= count; in xfs_da3_node_rebalance()
941 btree_d = &btree1[nodehdr1.count]; in xfs_da3_node_rebalance()
943 nodehdr1.count += count; in xfs_da3_node_rebalance()
962 xfs_da3_node_hdr_to_disk(dp->i_mount, node1, &nodehdr1); in xfs_da3_node_rebalance()
980 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr1, node1); in xfs_da3_node_rebalance()
982 btree1 = nodehdr1.btree; in xfs_da3_node_rebalance()
985 blk1->hashval = be32_to_cpu(btree1[nodehdr1.count - 1].hashval); in xfs_da3_node_rebalance()
991 if (blk1->index >= nodehdr1.count) { in xfs_da3_node_rebalance()
992 blk2->index = blk1->index - nodehdr1.count; in xfs_da3_node_rebalance()
993 blk1->index = nodehdr1.count + 1; /* make it invalid */ in xfs_da3_node_rebalance()