Lines Matching defs:new
596 * The new file will have a root block (in the inode) and a single child block.
1005 int size, /* space new attribute needs */
1152 struct xfs_bmbt_irec new;
1155 xfs_bmbt_disk_get_all(frp, &new);
1156 fa = xfs_bmap_validate_extent(ip, whichfork, &new);
1162 &new);
1164 xfs_iext_insert(ip, &ir->icur, &new,
1333 * in blocks being allocated at the end of the file. When we allocate new data
1335 * we will try to align the new blocks at stripe unit boundaries.
1337 * Returns 1 in bma->aeof if the file (fork) is empty as any new write will be
1416 struct xfs_bmbt_irec *new = &bma->got;
1419 xfs_fileoff_t new_endoff; /* end offset of new entry */
1424 xfs_filblks_t da_new; /* new count del alloc blocks used */
1431 ASSERT(!isnullstartblock(new->br_startblock));
1445 new_endoff = new->br_startoff + new->br_blockcount;
1447 ASSERT(PREV.br_startoff <= new->br_startoff);
1457 if (PREV.br_startoff == new->br_startoff)
1473 LEFT.br_startoff + LEFT.br_blockcount == new->br_startoff &&
1474 LEFT.br_startblock + LEFT.br_blockcount == new->br_startblock &&
1475 LEFT.br_state == new->br_state &&
1476 LEFT.br_blockcount + new->br_blockcount <= XFS_MAX_BMBT_EXTLEN)
1492 new->br_startblock + new->br_blockcount == RIGHT.br_startblock &&
1493 new->br_state == RIGHT.br_state &&
1494 new->br_blockcount + RIGHT.br_blockcount <= XFS_MAX_BMBT_EXTLEN &&
1499 LEFT.br_blockcount + new->br_blockcount + RIGHT.br_blockcount
1513 * The left and right neighbors are both contiguous with new.
1590 PREV.br_startblock = new->br_startblock;
1592 PREV.br_state = new->br_state;
1620 * the new one.
1622 PREV.br_startblock = new->br_startblock;
1623 PREV.br_state = new->br_state;
1631 error = xfs_bmbt_lookup_eq(bma->cur, new, &i);
1654 temp = PREV.br_blockcount - new->br_blockcount;
1658 LEFT.br_blockcount += new->br_blockcount;
1661 PREV.br_startoff += new->br_blockcount;
1690 xfs_iext_update_extent(bma->ip, state, &bma->icur, new);
1697 error = xfs_bmbt_lookup_eq(bma->cur, new, &i);
1721 temp = PREV.br_blockcount - new->br_blockcount;
1737 * The right neighbor is contiguous with the new allocation.
1740 RIGHT.br_startoff = new->br_startoff;
1741 RIGHT.br_startblock = new->br_startblock;
1742 RIGHT.br_blockcount += new->br_blockcount;
1760 temp = PREV.br_blockcount - new->br_blockcount;
1777 xfs_iext_update_extent(bma->ip, state, &bma->icur, new);
1784 error = xfs_bmbt_lookup_eq(bma->cur, new, &i);
1808 temp = PREV.br_blockcount - new->br_blockcount;
1832 * new
1836 * new
1842 /* LEFT is the new middle */
1843 LEFT = *new;
1845 /* RIGHT is the new right */
1855 PREV.br_blockcount = new->br_startoff - PREV.br_startoff;
1870 error = xfs_bmbt_lookup_eq(bma->cur, new, &i);
1913 xfs_rmap_map_extent(bma->tp, bma->ip, whichfork, new);
1963 xfs_bmbt_irec_t *new, /* new data to add to file extents */
1970 xfs_fileoff_t new_endoff; /* end offset of new entry */
1983 ASSERT(!isnullstartblock(new->br_startblock));
1996 ASSERT(new->br_state != PREV.br_state);
1997 new_endoff = new->br_startoff + new->br_blockcount;
1998 ASSERT(PREV.br_startoff <= new->br_startoff);
2005 if (PREV.br_startoff == new->br_startoff)
2021 LEFT.br_startoff + LEFT.br_blockcount == new->br_startoff &&
2022 LEFT.br_startblock + LEFT.br_blockcount == new->br_startblock &&
2023 LEFT.br_state == new->br_state &&
2024 LEFT.br_blockcount + new->br_blockcount <= XFS_MAX_BMBT_EXTLEN)
2040 new->br_startblock + new->br_blockcount == RIGHT.br_startblock &&
2041 new->br_state == RIGHT.br_state &&
2042 new->br_blockcount + RIGHT.br_blockcount <= XFS_MAX_BMBT_EXTLEN &&
2047 LEFT.br_blockcount + new->br_blockcount + RIGHT.br_blockcount
2060 * The left and right neighbors are both contiguous with new.
2156 PREV.br_state = new->br_state;
2197 * the new one.
2199 PREV.br_state = new->br_state;
2206 error = xfs_bmbt_lookup_eq(cur, new, &i);
2224 LEFT.br_blockcount += new->br_blockcount;
2227 PREV.br_startoff += new->br_blockcount;
2228 PREV.br_startblock += new->br_blockcount;
2229 PREV.br_blockcount -= new->br_blockcount;
2264 PREV.br_startoff += new->br_blockcount;
2265 PREV.br_startblock += new->br_blockcount;
2266 PREV.br_blockcount -= new->br_blockcount;
2269 xfs_iext_insert(ip, icur, new, state);
2286 cur->bc_rec.b = *new;
2299 * The right neighbor is contiguous with the new allocation.
2302 PREV.br_blockcount -= new->br_blockcount;
2304 RIGHT.br_startoff = new->br_startoff;
2305 RIGHT.br_startblock = new->br_startblock;
2306 RIGHT.br_blockcount += new->br_blockcount;
2341 PREV.br_blockcount -= new->br_blockcount;
2345 xfs_iext_insert(ip, icur, new, state);
2362 error = xfs_bmbt_lookup_eq(cur, new, &i);
2385 PREV.br_blockcount = new->br_startoff - PREV.br_startoff;
2387 r[0] = *new;
2391 r[1].br_startblock = new->br_startblock + new->br_blockcount;
2411 /* new right extent - oldext */
2415 /* new left extent - oldext */
2424 * Reset the cursor to the position of the new extent
2428 error = xfs_bmbt_lookup_eq(cur, new, &i);
2435 /* new middle extent - newext */
2459 xfs_rmap_convert_extent(mp, tp, ip, whichfork, new);
2496 xfs_bmbt_irec_t *new) /* new data to add to file extents */
2500 xfs_filblks_t newlen=0; /* new indirect size */
2507 ASSERT(isnullstartblock(new->br_startblock));
2533 left.br_startoff + left.br_blockcount == new->br_startoff &&
2534 left.br_blockcount + new->br_blockcount <= XFS_MAX_BMBT_EXTLEN)
2538 new->br_startoff + new->br_blockcount == right.br_startoff &&
2539 new->br_blockcount + right.br_blockcount <= XFS_MAX_BMBT_EXTLEN &&
2541 (left.br_blockcount + new->br_blockcount +
2555 temp = left.br_blockcount + new->br_blockcount +
2559 startblockval(new->br_startblock) +
2575 * Merge the new allocation with the left neighbor.
2577 temp = left.br_blockcount + new->br_blockcount;
2580 startblockval(new->br_startblock);
2594 * Merge the new allocation with the right neighbor.
2596 temp = new->br_blockcount + right.br_blockcount;
2597 oldlen = startblockval(new->br_startblock) +
2601 right.br_startoff = new->br_startoff;
2611 * Insert a new entry.
2614 xfs_iext_insert(ip, icur, new, state);
2638 struct xfs_bmbt_irec *new,
2653 ASSERT(!isnullstartblock(new->br_startblock));
2682 left.br_startoff + left.br_blockcount == new->br_startoff &&
2683 left.br_startblock + left.br_blockcount == new->br_startblock &&
2684 left.br_state == new->br_state &&
2685 left.br_blockcount + new->br_blockcount <= XFS_MAX_BMBT_EXTLEN)
2689 new->br_startoff + new->br_blockcount == right.br_startoff &&
2690 new->br_startblock + new->br_blockcount == right.br_startblock &&
2691 new->br_state == right.br_state &&
2692 new->br_blockcount + right.br_blockcount <= XFS_MAX_BMBT_EXTLEN &&
2694 left.br_blockcount + new->br_blockcount +
2709 left.br_blockcount += new->br_blockcount + right.br_blockcount;
2751 * Merge the new allocation with the left neighbor.
2754 left.br_blockcount += new->br_blockcount;
2780 * Merge the new allocation with the right neighbor.
2784 right.br_startoff = new->br_startoff;
2785 right.br_startblock = new->br_startblock;
2786 right.br_blockcount += new->br_blockcount;
2810 * Insert a new entry.
2812 xfs_iext_insert(ip, icur, new, state);
2819 error = xfs_bmbt_lookup_eq(cur, new, &i);
2839 xfs_rmap_map_extent(tp, ip, whichfork, new);
2869 * Adjust the size of the new extent based on i_extsize and rt extsize.
3371 * extent we mapped it in starting at this new offset. If the
3457 * alignment of the new extent.
3830 /* update previous map with new information */
4576 * in the page cache, we must be careful about how we create the new
4716 * indlen reservation must be shared across the two new extents that are left
4719 * Given the original reservation and the worst case indlen for the two new
4721 * reservation fairly across the two new extents. If necessary, steal available
4735 xfs_filblks_t nres = len1 + len2; /* new total res. */
4741 * indlen for both new extents.
4747 /* nothing else to do if we've satisfied the new reservation */
4809 struct xfs_bmbt_irec new;
4885 * Distribute the original indlen reservation across the two new
4888 * Warn if either of the new indlen reservations is zero as this
4894 new.br_blockcount = got_endoff - del_endoff;
4895 new_indlen = xfs_bmap_worst_indlen(ip, new.br_blockcount);
4903 new.br_startoff = del_endoff;
4904 new.br_state = got->br_state;
4905 new.br_startblock = nullstartblock((int)new_indlen);
4909 xfs_iext_insert(ip, icur, &new, state);
4936 struct xfs_bmbt_irec new;
4985 new.br_startoff = del_endoff;
4986 new.br_blockcount = got_endoff - del_endoff;
4987 new.br_state = got->br_state;
4988 new.br_startblock = del->br_startblock + del->br_blockcount;
4992 xfs_iext_insert(ip, icur, &new, state);
5024 xfs_bmbt_irec_t new; /* new record to be inserted */
5152 new.br_startoff = del_endoff;
5153 new.br_blockcount = got_endoff - del_endoff;
5154 new.br_state = got.br_state;
5155 new.br_startblock = del_endblock;
5165 cur->bc_rec.b = new;
5211 xfs_iext_insert(ip, icur, &new, state);
5631 struct xfs_bmbt_irec new;
5642 new = *left;
5643 new.br_blockcount = blockcount;
5676 error = xfs_bmbt_update(cur, &new);
5689 &new);
5693 memcpy(&new, got, sizeof(new));
5694 new.br_startoff = left->br_startoff + left->br_blockcount;
5695 xfs_rmap_map_extent(tp, ip, whichfork, &new);
5969 struct xfs_bmbt_irec new; /* split extent */
5971 xfs_fsblock_t gotblkcnt; /* new block count for got */
5998 new.br_startoff = split_fsb;
5999 new.br_startblock = got.br_startblock + gotblkcnt;
6000 new.br_blockcount = got.br_blockcount - gotblkcnt;
6001 new.br_state = got.br_state;
6027 /* Add new extent */
6029 xfs_iext_insert(ip, &icur, &new, 0);
6033 error = xfs_bmbt_lookup_eq(cur, &new, &i);