Lines Matching refs:new
537 struct xfs_extent_free_item *new; /* new element */ in __xfs_bmap_add_free() local
556 new = kmem_cache_alloc(xfs_bmap_free_item_zone, in __xfs_bmap_add_free()
558 new->xefi_startblock = bno; in __xfs_bmap_add_free()
559 new->xefi_blockcount = (xfs_extlen_t)len; in __xfs_bmap_add_free()
561 new->xefi_oinfo = *oinfo; in __xfs_bmap_add_free()
563 new->xefi_oinfo = XFS_RMAP_OINFO_SKIP_UPDATE; in __xfs_bmap_add_free()
564 new->xefi_skip_discard = skip_discard; in __xfs_bmap_add_free()
568 xfs_defer_add(tp, XFS_DEFER_OPS_TYPE_FREE, &new->xefi_list); in __xfs_bmap_add_free()
1197 struct xfs_bmbt_irec new; in xfs_iread_bmbt_block() local
1200 xfs_bmbt_disk_get_all(frp, &new); in xfs_iread_bmbt_block()
1201 fa = xfs_bmap_validate_extent(ip, whichfork, &new); in xfs_iread_bmbt_block()
1208 xfs_iext_insert(ip, &ir->icur, &new, in xfs_iread_bmbt_block()
1496 struct xfs_bmbt_irec *new = &bma->got; in xfs_bmap_add_extent_delay_real() local
1511 ASSERT(!isnullstartblock(new->br_startblock)); in xfs_bmap_add_extent_delay_real()
1525 new_endoff = new->br_startoff + new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1527 ASSERT(PREV.br_startoff <= new->br_startoff); in xfs_bmap_add_extent_delay_real()
1537 if (PREV.br_startoff == new->br_startoff) in xfs_bmap_add_extent_delay_real()
1553 LEFT.br_startoff + LEFT.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_delay_real()
1554 LEFT.br_startblock + LEFT.br_blockcount == new->br_startblock && in xfs_bmap_add_extent_delay_real()
1555 LEFT.br_state == new->br_state && in xfs_bmap_add_extent_delay_real()
1556 LEFT.br_blockcount + new->br_blockcount <= MAXEXTLEN) in xfs_bmap_add_extent_delay_real()
1572 new->br_startblock + new->br_blockcount == RIGHT.br_startblock && in xfs_bmap_add_extent_delay_real()
1573 new->br_state == RIGHT.br_state && in xfs_bmap_add_extent_delay_real()
1574 new->br_blockcount + RIGHT.br_blockcount <= MAXEXTLEN && in xfs_bmap_add_extent_delay_real()
1579 LEFT.br_blockcount + new->br_blockcount + RIGHT.br_blockcount in xfs_bmap_add_extent_delay_real()
1670 PREV.br_startblock = new->br_startblock; in xfs_bmap_add_extent_delay_real()
1672 PREV.br_state = new->br_state; in xfs_bmap_add_extent_delay_real()
1702 PREV.br_startblock = new->br_startblock; in xfs_bmap_add_extent_delay_real()
1703 PREV.br_state = new->br_state; in xfs_bmap_add_extent_delay_real()
1711 error = xfs_bmbt_lookup_eq(bma->cur, new, &i); in xfs_bmap_add_extent_delay_real()
1734 temp = PREV.br_blockcount - new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1738 LEFT.br_blockcount += new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1741 PREV.br_startoff += new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1770 xfs_iext_update_extent(bma->ip, state, &bma->icur, new); in xfs_bmap_add_extent_delay_real()
1777 error = xfs_bmbt_lookup_eq(bma->cur, new, &i); in xfs_bmap_add_extent_delay_real()
1801 temp = PREV.br_blockcount - new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1820 RIGHT.br_startoff = new->br_startoff; in xfs_bmap_add_extent_delay_real()
1821 RIGHT.br_startblock = new->br_startblock; in xfs_bmap_add_extent_delay_real()
1822 RIGHT.br_blockcount += new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1840 temp = PREV.br_blockcount - new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1857 xfs_iext_update_extent(bma->ip, state, &bma->icur, new); in xfs_bmap_add_extent_delay_real()
1864 error = xfs_bmbt_lookup_eq(bma->cur, new, &i); in xfs_bmap_add_extent_delay_real()
1888 temp = PREV.br_blockcount - new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1923 LEFT = *new; in xfs_bmap_add_extent_delay_real()
1935 PREV.br_blockcount = new->br_startoff - PREV.br_startoff; in xfs_bmap_add_extent_delay_real()
1950 error = xfs_bmbt_lookup_eq(bma->cur, new, &i); in xfs_bmap_add_extent_delay_real()
1993 xfs_rmap_map_extent(bma->tp, bma->ip, whichfork, new); in xfs_bmap_add_extent_delay_real()
2043 xfs_bmbt_irec_t *new, /* new data to add to file extents */ in xfs_bmap_add_extent_unwritten_real() argument
2063 ASSERT(!isnullstartblock(new->br_startblock)); in xfs_bmap_add_extent_unwritten_real()
2076 ASSERT(new->br_state != PREV.br_state); in xfs_bmap_add_extent_unwritten_real()
2077 new_endoff = new->br_startoff + new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2078 ASSERT(PREV.br_startoff <= new->br_startoff); in xfs_bmap_add_extent_unwritten_real()
2085 if (PREV.br_startoff == new->br_startoff) in xfs_bmap_add_extent_unwritten_real()
2101 LEFT.br_startoff + LEFT.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_unwritten_real()
2102 LEFT.br_startblock + LEFT.br_blockcount == new->br_startblock && in xfs_bmap_add_extent_unwritten_real()
2103 LEFT.br_state == new->br_state && in xfs_bmap_add_extent_unwritten_real()
2104 LEFT.br_blockcount + new->br_blockcount <= MAXEXTLEN) in xfs_bmap_add_extent_unwritten_real()
2120 new->br_startblock + new->br_blockcount == RIGHT.br_startblock && in xfs_bmap_add_extent_unwritten_real()
2121 new->br_state == RIGHT.br_state && in xfs_bmap_add_extent_unwritten_real()
2122 new->br_blockcount + RIGHT.br_blockcount <= MAXEXTLEN && in xfs_bmap_add_extent_unwritten_real()
2127 LEFT.br_blockcount + new->br_blockcount + RIGHT.br_blockcount in xfs_bmap_add_extent_unwritten_real()
2236 PREV.br_state = new->br_state; in xfs_bmap_add_extent_unwritten_real()
2279 PREV.br_state = new->br_state; in xfs_bmap_add_extent_unwritten_real()
2286 error = xfs_bmbt_lookup_eq(cur, new, &i); in xfs_bmap_add_extent_unwritten_real()
2304 LEFT.br_blockcount += new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2307 PREV.br_startoff += new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2308 PREV.br_startblock += new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2309 PREV.br_blockcount -= new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2344 PREV.br_startoff += new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2345 PREV.br_startblock += new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2346 PREV.br_blockcount -= new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2349 xfs_iext_insert(ip, icur, new, state); in xfs_bmap_add_extent_unwritten_real()
2366 cur->bc_rec.b = *new; in xfs_bmap_add_extent_unwritten_real()
2382 PREV.br_blockcount -= new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2384 RIGHT.br_startoff = new->br_startoff; in xfs_bmap_add_extent_unwritten_real()
2385 RIGHT.br_startblock = new->br_startblock; in xfs_bmap_add_extent_unwritten_real()
2386 RIGHT.br_blockcount += new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2421 PREV.br_blockcount -= new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2425 xfs_iext_insert(ip, icur, new, state); in xfs_bmap_add_extent_unwritten_real()
2442 error = xfs_bmbt_lookup_eq(cur, new, &i); in xfs_bmap_add_extent_unwritten_real()
2465 PREV.br_blockcount = new->br_startoff - PREV.br_startoff; in xfs_bmap_add_extent_unwritten_real()
2467 r[0] = *new; in xfs_bmap_add_extent_unwritten_real()
2471 r[1].br_startblock = new->br_startblock + new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2508 error = xfs_bmbt_lookup_eq(cur, new, &i); in xfs_bmap_add_extent_unwritten_real()
2539 xfs_rmap_convert_extent(mp, tp, ip, whichfork, new); in xfs_bmap_add_extent_unwritten_real()
2576 xfs_bmbt_irec_t *new) /* new data to add to file extents */ in xfs_bmap_add_extent_hole_delay() argument
2587 ASSERT(isnullstartblock(new->br_startblock)); in xfs_bmap_add_extent_hole_delay()
2613 left.br_startoff + left.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_hole_delay()
2614 left.br_blockcount + new->br_blockcount <= MAXEXTLEN) in xfs_bmap_add_extent_hole_delay()
2618 new->br_startoff + new->br_blockcount == right.br_startoff && in xfs_bmap_add_extent_hole_delay()
2619 new->br_blockcount + right.br_blockcount <= MAXEXTLEN && in xfs_bmap_add_extent_hole_delay()
2621 (left.br_blockcount + new->br_blockcount + in xfs_bmap_add_extent_hole_delay()
2635 temp = left.br_blockcount + new->br_blockcount + in xfs_bmap_add_extent_hole_delay()
2639 startblockval(new->br_startblock) + in xfs_bmap_add_extent_hole_delay()
2657 temp = left.br_blockcount + new->br_blockcount; in xfs_bmap_add_extent_hole_delay()
2660 startblockval(new->br_startblock); in xfs_bmap_add_extent_hole_delay()
2676 temp = new->br_blockcount + right.br_blockcount; in xfs_bmap_add_extent_hole_delay()
2677 oldlen = startblockval(new->br_startblock) + in xfs_bmap_add_extent_hole_delay()
2681 right.br_startoff = new->br_startoff; in xfs_bmap_add_extent_hole_delay()
2694 xfs_iext_insert(ip, icur, new, state); in xfs_bmap_add_extent_hole_delay()
2718 struct xfs_bmbt_irec *new, in xfs_bmap_add_extent_hole_real() argument
2733 ASSERT(!isnullstartblock(new->br_startblock)); in xfs_bmap_add_extent_hole_real()
2762 left.br_startoff + left.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_hole_real()
2763 left.br_startblock + left.br_blockcount == new->br_startblock && in xfs_bmap_add_extent_hole_real()
2764 left.br_state == new->br_state && in xfs_bmap_add_extent_hole_real()
2765 left.br_blockcount + new->br_blockcount <= MAXEXTLEN) in xfs_bmap_add_extent_hole_real()
2769 new->br_startoff + new->br_blockcount == right.br_startoff && in xfs_bmap_add_extent_hole_real()
2770 new->br_startblock + new->br_blockcount == right.br_startblock && in xfs_bmap_add_extent_hole_real()
2771 new->br_state == right.br_state && in xfs_bmap_add_extent_hole_real()
2772 new->br_blockcount + right.br_blockcount <= MAXEXTLEN && in xfs_bmap_add_extent_hole_real()
2774 left.br_blockcount + new->br_blockcount + in xfs_bmap_add_extent_hole_real()
2789 left.br_blockcount += new->br_blockcount + right.br_blockcount; in xfs_bmap_add_extent_hole_real()
2834 left.br_blockcount += new->br_blockcount; in xfs_bmap_add_extent_hole_real()
2864 right.br_startoff = new->br_startoff; in xfs_bmap_add_extent_hole_real()
2865 right.br_startblock = new->br_startblock; in xfs_bmap_add_extent_hole_real()
2866 right.br_blockcount += new->br_blockcount; in xfs_bmap_add_extent_hole_real()
2892 xfs_iext_insert(ip, icur, new, state); in xfs_bmap_add_extent_hole_real()
2899 error = xfs_bmbt_lookup_eq(cur, new, &i); in xfs_bmap_add_extent_hole_real()
2919 xfs_rmap_map_extent(tp, ip, whichfork, new); in xfs_bmap_add_extent_hole_real()
4797 struct xfs_bmbt_irec new; in xfs_bmap_del_extent_delay() local
4883 new.br_blockcount = got_endoff - del_endoff; in xfs_bmap_del_extent_delay()
4884 new_indlen = xfs_bmap_worst_indlen(ip, new.br_blockcount); in xfs_bmap_del_extent_delay()
4892 new.br_startoff = del_endoff; in xfs_bmap_del_extent_delay()
4893 new.br_state = got->br_state; in xfs_bmap_del_extent_delay()
4894 new.br_startblock = nullstartblock((int)new_indlen); in xfs_bmap_del_extent_delay()
4898 xfs_iext_insert(ip, icur, &new, state); in xfs_bmap_del_extent_delay()
4925 struct xfs_bmbt_irec new; in xfs_bmap_del_extent_cow() local
4974 new.br_startoff = del_endoff; in xfs_bmap_del_extent_cow()
4975 new.br_blockcount = got_endoff - del_endoff; in xfs_bmap_del_extent_cow()
4976 new.br_state = got->br_state; in xfs_bmap_del_extent_cow()
4977 new.br_startblock = del->br_startblock + del->br_blockcount; in xfs_bmap_del_extent_cow()
4981 xfs_iext_insert(ip, icur, &new, state); in xfs_bmap_del_extent_cow()
5013 xfs_bmbt_irec_t new; /* new record to be inserted */ in xfs_bmap_del_extent_real() local
5153 new.br_startoff = del_endoff; in xfs_bmap_del_extent_real()
5154 new.br_blockcount = got_endoff - del_endoff; in xfs_bmap_del_extent_real()
5155 new.br_state = got.br_state; in xfs_bmap_del_extent_real()
5156 new.br_startblock = del_endblock; in xfs_bmap_del_extent_real()
5166 cur->bc_rec.b = new; in xfs_bmap_del_extent_real()
5212 xfs_iext_insert(ip, icur, &new, state); in xfs_bmap_del_extent_real()
5659 struct xfs_bmbt_irec new; in xfs_bmse_merge() local
5670 new = *left; in xfs_bmse_merge()
5671 new.br_blockcount = blockcount; in xfs_bmse_merge()
5704 error = xfs_bmbt_update(cur, &new); in xfs_bmse_merge()
5717 &new); in xfs_bmse_merge()
5721 memcpy(&new, got, sizeof(new)); in xfs_bmse_merge()
5722 new.br_startoff = left->br_startoff + left->br_blockcount; in xfs_bmse_merge()
5723 xfs_rmap_map_extent(tp, ip, whichfork, &new); in xfs_bmse_merge()
6001 struct xfs_bmbt_irec new; /* split extent */ in xfs_bmap_split_extent() local
6032 new.br_startoff = split_fsb; in xfs_bmap_split_extent()
6033 new.br_startblock = got.br_startblock + gotblkcnt; in xfs_bmap_split_extent()
6034 new.br_blockcount = got.br_blockcount - gotblkcnt; in xfs_bmap_split_extent()
6035 new.br_state = got.br_state; in xfs_bmap_split_extent()
6063 xfs_iext_insert(ip, &icur, &new, 0); in xfs_bmap_split_extent()
6067 error = xfs_bmbt_lookup_eq(cur, &new, &i); in xfs_bmap_split_extent()