Lines Matching refs:new

461 	struct xfs_iext_node	*new = kmem_zalloc(NODE_SIZE, KM_NOFS);  in xfs_iext_split_node()  local
468 *nodep = new; in xfs_iext_split_node()
476 new->keys[i] = node->keys[nr_keep + i]; in xfs_iext_split_node()
477 new->ptrs[i] = node->ptrs[nr_keep + i]; in xfs_iext_split_node()
484 *nodep = new; in xfs_iext_split_node()
492 new->keys[i] = XFS_IEXT_KEY_INVALID; in xfs_iext_split_node()
493 return new; in xfs_iext_split_node()
503 struct xfs_iext_node *node, *new; in xfs_iext_insert_node() local
510 new = NULL; in xfs_iext_insert_node()
519 new = xfs_iext_split_node(&node, &pos, &nr_entries); in xfs_iext_insert_node()
525 if (node != new && pos == 0 && nr_entries > 0) in xfs_iext_insert_node()
535 if (new) { in xfs_iext_insert_node()
536 offset = new->keys[0]; in xfs_iext_insert_node()
537 ptr = new; in xfs_iext_insert_node()
549 struct xfs_iext_leaf *new = kmem_zalloc(NODE_SIZE, KM_NOFS); in xfs_iext_split_leaf() local
556 cur->leaf = new; in xfs_iext_split_leaf()
563 new->recs[i] = leaf->recs[nr_keep + i]; in xfs_iext_split_leaf()
568 cur->leaf = new; in xfs_iext_split_leaf()
576 leaf->next->prev = new; in xfs_iext_split_leaf()
577 new->next = leaf->next; in xfs_iext_split_leaf()
578 new->prev = leaf; in xfs_iext_split_leaf()
579 leaf->next = new; in xfs_iext_split_leaf()
580 return new; in xfs_iext_split_leaf()
604 void *new; in xfs_iext_realloc_root() local
610 new = kmem_realloc(ifp->if_u1.if_root, new_size, KM_NOFS); in xfs_iext_realloc_root()
611 memset(new + ifp->if_bytes, 0, new_size - ifp->if_bytes); in xfs_iext_realloc_root()
612 ifp->if_u1.if_root = new; in xfs_iext_realloc_root()
613 cur->leaf = new; in xfs_iext_realloc_root()
638 struct xfs_iext_leaf *new = NULL; in xfs_iext_insert() local
654 new = xfs_iext_split_leaf(cur, &nr_entries); in xfs_iext_insert()
660 if (cur->leaf != new && cur->pos == 0 && nr_entries > 0) { in xfs_iext_insert()
672 if (new) in xfs_iext_insert()
673 xfs_iext_insert_node(ifp, xfs_iext_leaf_key(new, 0), new, 2); in xfs_iext_insert()
987 struct xfs_bmbt_irec *new) in xfs_iext_update_extent() argument
997 if (new->br_startoff != old.br_startoff) { in xfs_iext_update_extent()
999 new->br_startoff, 1, cur->leaf); in xfs_iext_update_extent()
1004 xfs_iext_set(cur_rec(cur), new); in xfs_iext_update_extent()