Lines Matching refs:new
457 struct xfs_iext_node *new = kmem_zalloc(NODE_SIZE, KM_NOFS); in xfs_iext_split_node() local
464 *nodep = new; in xfs_iext_split_node()
472 new->keys[i] = node->keys[nr_keep + i]; in xfs_iext_split_node()
473 new->ptrs[i] = node->ptrs[nr_keep + i]; in xfs_iext_split_node()
480 *nodep = new; in xfs_iext_split_node()
488 new->keys[i] = XFS_IEXT_KEY_INVALID; in xfs_iext_split_node()
489 return new; in xfs_iext_split_node()
499 struct xfs_iext_node *node, *new; in xfs_iext_insert_node() local
506 new = NULL; in xfs_iext_insert_node()
515 new = xfs_iext_split_node(&node, &pos, &nr_entries); in xfs_iext_insert_node()
521 if (node != new && pos == 0 && nr_entries > 0) in xfs_iext_insert_node()
531 if (new) { in xfs_iext_insert_node()
532 offset = new->keys[0]; in xfs_iext_insert_node()
533 ptr = new; in xfs_iext_insert_node()
545 struct xfs_iext_leaf *new = kmem_zalloc(NODE_SIZE, KM_NOFS); in xfs_iext_split_leaf() local
552 cur->leaf = new; in xfs_iext_split_leaf()
559 new->recs[i] = leaf->recs[nr_keep + i]; in xfs_iext_split_leaf()
564 cur->leaf = new; in xfs_iext_split_leaf()
572 leaf->next->prev = new; in xfs_iext_split_leaf()
573 new->next = leaf->next; in xfs_iext_split_leaf()
574 new->prev = leaf; in xfs_iext_split_leaf()
575 leaf->next = new; in xfs_iext_split_leaf()
576 return new; in xfs_iext_split_leaf()
600 void *new; in xfs_iext_realloc_root() local
606 new = krealloc(ifp->if_u1.if_root, new_size, GFP_NOFS | __GFP_NOFAIL); in xfs_iext_realloc_root()
607 memset(new + ifp->if_bytes, 0, new_size - ifp->if_bytes); in xfs_iext_realloc_root()
608 ifp->if_u1.if_root = new; in xfs_iext_realloc_root()
609 cur->leaf = new; in xfs_iext_realloc_root()
633 struct xfs_iext_leaf *new = NULL; in xfs_iext_insert() local
649 new = xfs_iext_split_leaf(cur, &nr_entries); in xfs_iext_insert()
655 if (cur->leaf != new && cur->pos == 0 && nr_entries > 0) { in xfs_iext_insert()
667 if (new) in xfs_iext_insert()
668 xfs_iext_insert_node(ifp, xfs_iext_leaf_key(new, 0), new, 2); in xfs_iext_insert()
982 struct xfs_bmbt_irec *new) in xfs_iext_update_extent() argument
992 if (new->br_startoff != old.br_startoff) { in xfs_iext_update_extent()
994 new->br_startoff, 1, cur->leaf); in xfs_iext_update_extent()
999 xfs_iext_set(cur_rec(cur), new); in xfs_iext_update_extent()