Lines Matching refs:oldblk
161 xfs_da_state_blk_t *oldblk, *newblk, *addblk; in xfs_da_split() local
179 oldblk = &state->path.blk[i]; in xfs_da_split()
188 switch (oldblk->magic) { in xfs_da_split()
193 error = xfs_attr_leaf_split(state, oldblk, newblk); in xfs_da_split()
207 error = xfs_attr_leaf_split(state, oldblk, in xfs_da_split()
221 error = xfs_dir_leaf_split(state, oldblk, newblk); in xfs_da_split()
235 error = xfs_dir_leaf_split(state, oldblk, in xfs_da_split()
251 error = xfs_dir2_leafn_split(state, oldblk, newblk); in xfs_da_split()
257 error = xfs_da_node_split(state, oldblk, newblk, addblk, in xfs_da_split()
283 xfs_da_buf_done(oldblk->bp); in xfs_da_split()
292 oldblk = &state->path.blk[0]; in xfs_da_split()
293 error = xfs_da_root_split(state, oldblk, addblk); in xfs_da_split()
295 xfs_da_buf_done(oldblk->bp); in xfs_da_split()
308 node = oldblk->bp->data; in xfs_da_split()
317 INT_SET(node->hdr.info.back, ARCH_CONVERT, oldblk->blkno); in xfs_da_split()
322 node = oldblk->bp->data; in xfs_da_split()
331 INT_SET(node->hdr.info.forw, ARCH_CONVERT, oldblk->blkno); in xfs_da_split()
336 xfs_da_buf_done(oldblk->bp); in xfs_da_split()
433 xfs_da_node_split(xfs_da_state_t *state, xfs_da_state_blk_t *oldblk, in xfs_da_node_split() argument
443 node = oldblk->bp->data; in xfs_da_node_split()
469 xfs_da_node_rebalance(state, oldblk, newblk); in xfs_da_node_split()
470 error = xfs_da_blk_link(state, oldblk, newblk); in xfs_da_node_split()
490 node = oldblk->bp->data; in xfs_da_node_split()
491 if (oldblk->index <= INT_GET(node->hdr.count, ARCH_CONVERT)) { in xfs_da_node_split()
492 oldblk->index++; in xfs_da_node_split()
493 xfs_da_node_add(state, oldblk, addblk); in xfs_da_node_split()
496 oldblk->index++; in xfs_da_node_split()
497 xfs_da_node_add(state, oldblk, &state->extrablk); in xfs_da_node_split()
631 xfs_da_node_add(xfs_da_state_t *state, xfs_da_state_blk_t *oldblk, in xfs_da_node_add() argument
639 node = oldblk->bp->data; in xfs_da_node_add()
642 ASSERT((oldblk->index >= 0) && (oldblk->index <= INT_GET(node->hdr.count, ARCH_CONVERT))); in xfs_da_node_add()
652 btree = &node->btree[ oldblk->index ]; in xfs_da_node_add()
653 if (oldblk->index < INT_GET(node->hdr.count, ARCH_CONVERT)) { in xfs_da_node_add()
654 tmp = (INT_GET(node->hdr.count, ARCH_CONVERT) - oldblk->index) * (uint)sizeof(*btree); in xfs_da_node_add()
659 xfs_da_log_buf(state->args->trans, oldblk->bp, in xfs_da_node_add()
662 xfs_da_log_buf(state->args->trans, oldblk->bp, in xfs_da_node_add()
668 …oldblk->hashval = INT_GET(node->btree[ INT_GET(node->hdr.count, ARCH_CONVERT)-1 ].hashval, ARCH_CO… in xfs_da_node_add()