Lines Matching refs:oldblk
369 struct xfs_da_state_blk *oldblk; in xfs_da3_split() local
393 oldblk = &state->path.blk[i]; in xfs_da3_split()
402 switch (oldblk->magic) { in xfs_da3_split()
404 error = xfs_attr3_leaf_split(state, oldblk, newblk); in xfs_da3_split()
421 error = xfs_attr3_leaf_split(state, oldblk, in xfs_da3_split()
434 error = xfs_dir2_leafn_split(state, oldblk, newblk); in xfs_da3_split()
440 error = xfs_da3_node_split(state, oldblk, newblk, addblk, in xfs_da3_split()
475 oldblk = &state->path.blk[0]; in xfs_da3_split()
476 error = xfs_da3_root_split(state, oldblk, addblk); in xfs_da3_split()
493 node = oldblk->bp->b_addr; in xfs_da3_split()
497 node->hdr.info.back = cpu_to_be32(oldblk->blkno); in xfs_da3_split()
502 node = oldblk->bp->b_addr; in xfs_da3_split()
506 node->hdr.info.forw = cpu_to_be32(oldblk->blkno); in xfs_da3_split()
654 struct xfs_da_state_blk *oldblk, in xfs_da3_node_split() argument
670 node = oldblk->bp->b_addr; in xfs_da3_node_split()
696 xfs_da3_node_rebalance(state, oldblk, newblk); in xfs_da3_node_split()
697 error = xfs_da3_blk_link(state, oldblk, newblk); in xfs_da3_node_split()
717 node = oldblk->bp->b_addr; in xfs_da3_node_split()
719 if (oldblk->index <= nodehdr.count) { in xfs_da3_node_split()
720 oldblk->index++; in xfs_da3_node_split()
721 xfs_da3_node_add(state, oldblk, addblk); in xfs_da3_node_split()
724 oldblk->index++; in xfs_da3_node_split()
725 xfs_da3_node_add(state, oldblk, &state->extrablk); in xfs_da3_node_split()
894 struct xfs_da_state_blk *oldblk, in xfs_da3_node_add() argument
905 node = oldblk->bp->b_addr; in xfs_da3_node_add()
909 ASSERT(oldblk->index >= 0 && oldblk->index <= nodehdr.count); in xfs_da3_node_add()
919 if (oldblk->index < nodehdr.count) { in xfs_da3_node_add()
920 tmp = (nodehdr.count - oldblk->index) * (uint)sizeof(*btree); in xfs_da3_node_add()
921 memmove(&btree[oldblk->index + 1], &btree[oldblk->index], tmp); in xfs_da3_node_add()
923 btree[oldblk->index].hashval = cpu_to_be32(newblk->hashval); in xfs_da3_node_add()
924 btree[oldblk->index].before = cpu_to_be32(newblk->blkno); in xfs_da3_node_add()
925 xfs_trans_log_buf(state->args->trans, oldblk->bp, in xfs_da3_node_add()
926 XFS_DA_LOGRANGE(node, &btree[oldblk->index], in xfs_da3_node_add()
931 xfs_trans_log_buf(state->args->trans, oldblk->bp, in xfs_da3_node_add()
937 oldblk->hashval = be32_to_cpu(btree[nodehdr.count - 1].hashval); in xfs_da3_node_add()