• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/xfs/

Lines Matching refs:new

100 	xfs_bmbt_irec_t		*new,	/* new data to add to file extents */
116 xfs_bmbt_irec_t *new, /* new data to add to file extents */
117 xfs_filblks_t *dnew, /* new delayed-alloc indirect blocks */
131 xfs_bmbt_irec_t *new, /* new data to add to file extents */
144 xfs_bmbt_irec_t *new, /* new data to add to file extents */
157 xfs_bmbt_irec_t *new, /* new data to add to file extents */
162 * It figures out where to ask the underlying allocator to put the new extent.
193 xfs_bmbt_irec_t *new, /* new data to add to file extents */
210 * The new file will have a root block (in the inode) and a single child block.
256 * in blocks being allocated at the end of the file. When we allocate new data
258 * we will try to align the new blocks at stripe unit boundaries.
479 xfs_bmbt_irec_t *new, /* new data to add to file extents */
487 xfs_filblks_t da_new; /* new count del alloc blocks used */
502 * This is the first extent added to a new/empty file.
507 xfs_iext_insert(ip, 0, 1, new,
512 if (!isnullstartblock(new->br_startblock)) {
519 * Any kind of new delayed allocation goes here.
521 else if (isnullstartblock(new->br_startblock)) {
525 if ((error = xfs_bmap_add_extent_hole_delay(ip, idx, new,
536 if ((error = xfs_bmap_add_extent_hole_real(ip, idx, cur, new,
547 * If it's a real allocation record, and the new allocation ends
552 if (!isnullstartblock(new->br_startblock) &&
553 new->br_startoff + new->br_blockcount > prev.br_startoff) {
561 idx, &cur, new, &da_new, first, flist,
564 } else if (new->br_state == XFS_EXT_NORM) {
565 ASSERT(new->br_state == XFS_EXT_NORM);
567 ip, idx, &cur, new, &logflags)))
570 ASSERT(new->br_state == XFS_EXT_UNWRITTEN);
572 ip, idx, &cur, new, &logflags)))
585 new, &logflags, whichfork)))
645 xfs_bmbt_irec_t *new, /* new data to add to file extents */
646 xfs_filblks_t *dnew, /* new delayed-alloc indirect blocks */
658 xfs_fileoff_t new_endoff; /* end offset of new entry */
678 new_endoff = new->br_startoff + new->br_blockcount;
679 ASSERT(PREV.br_startoff <= new->br_startoff);
686 if (PREV.br_startoff == new->br_startoff)
704 LEFT.br_startoff + LEFT.br_blockcount == new->br_startoff &&
705 LEFT.br_startblock + LEFT.br_blockcount == new->br_startblock &&
706 LEFT.br_state == new->br_state &&
707 LEFT.br_blockcount + new->br_blockcount <= MAXEXTLEN)
725 new->br_startblock + new->br_blockcount == RIGHT.br_startblock &&
726 new->br_state == RIGHT.br_state &&
727 new->br_blockcount + RIGHT.br_blockcount <= MAXEXTLEN &&
732 LEFT.br_blockcount + new->br_blockcount + RIGHT.br_blockcount
746 * The left and right neighbors are both contiguous with new.
818 xfs_bmbt_set_startblock(ep, new->br_startblock);
835 new->br_startblock,
847 * the new one.
850 xfs_bmbt_set_startblock(ep, new->br_startblock);
859 if ((error = xfs_bmbt_lookup_eq(cur, new->br_startoff,
860 new->br_startblock, new->br_blockcount,
879 LEFT.br_blockcount + new->br_blockcount);
881 PREV.br_startoff + new->br_blockcount);
884 temp = PREV.br_blockcount - new->br_blockcount;
900 new->br_blockcount,
918 temp = PREV.br_blockcount - new->br_blockcount;
920 xfs_iext_insert(ip, idx, 1, new, state);
927 if ((error = xfs_bmbt_lookup_eq(cur, new->br_startoff,
928 new->br_startblock, new->br_blockcount,
958 * The right neighbor is contiguous with the new allocation.
960 temp = PREV.br_blockcount - new->br_blockcount;
965 new->br_startoff, new->br_startblock,
966 new->br_blockcount + RIGHT.br_blockcount,
979 if ((error = xfs_bmbt_update(cur, new->br_startoff,
980 new->br_startblock,
981 new->br_blockcount +
998 temp = PREV.br_blockcount - new->br_blockcount;
1001 xfs_iext_insert(ip, idx + 1, 1, new, state);
1008 if ((error = xfs_bmbt_lookup_eq(cur, new->br_startoff,
1009 new->br_startblock, new->br_blockcount,
1042 temp = new->br_startoff - PREV.br_startoff;
1045 r[0] = *new;
1058 if ((error = xfs_bmbt_lookup_eq(cur, new->br_startoff,
1059 new->br_startblock, new->br_blockcount,
1146 xfs_bmbt_irec_t *new, /* new data to add to file extents */
1154 xfs_fileoff_t new_endoff; /* end offset of new entry */
1155 xfs_exntst_t newext; /* new extent state */
1173 newext = new->br_state;
1177 new_endoff = new->br_startoff + new->br_blockcount;
1178 ASSERT(PREV.br_startoff <= new->br_startoff);
1185 if (PREV.br_startoff == new->br_startoff)
1203 LEFT.br_startoff + LEFT.br_blockcount == new->br_startoff &&
1204 LEFT.br_startblock + LEFT.br_blockcount == new->br_startblock &&
1206 LEFT.br_blockcount + new->br_blockcount <= MAXEXTLEN)
1223 new->br_startblock + new->br_blockcount == RIGHT.br_startblock &&
1225 new->br_blockcount + RIGHT.br_blockcount <= MAXEXTLEN &&
1230 LEFT.br_blockcount + new->br_blockcount + RIGHT.br_blockcount
1243 * The left and right neighbors are both contiguous with new.
1347 if ((error = xfs_bmbt_update(cur, new->br_startoff,
1348 new->br_startblock,
1349 new->br_blockcount + RIGHT.br_blockcount,
1359 * the new one.
1370 if ((error = xfs_bmbt_lookup_eq(cur, new->br_startoff,
1371 new->br_startblock, new->br_blockcount,
1375 if ((error = xfs_bmbt_update(cur, new->br_startoff,
1376 new->br_startblock, new->br_blockcount,
1389 LEFT.br_blockcount + new->br_blockcount);
1391 PREV.br_startoff + new->br_blockcount);
1396 new->br_startblock + new->br_blockcount);
1398 PREV.br_blockcount - new->br_blockcount);
1412 PREV.br_startoff + new->br_blockcount,
1413 PREV.br_startblock + new->br_blockcount,
1414 PREV.br_blockcount - new->br_blockcount,
1421 LEFT.br_blockcount + new->br_blockcount,
1436 PREV.br_blockcount - new->br_blockcount);
1438 new->br_startblock + new->br_blockcount);
1441 xfs_iext_insert(ip, idx, 1, new, state);
1454 PREV.br_startoff + new->br_blockcount,
1455 PREV.br_startblock + new->br_blockcount,
1456 PREV.br_blockcount - new->br_blockcount,
1459 cur->bc_rec.b = *new;
1469 * The right neighbor is contiguous with the new allocation.
1474 PREV.br_blockcount - new->br_blockcount);
1477 new->br_startoff, new->br_startblock,
1478 new->br_blockcount + RIGHT.br_blockcount, newext);
1493 PREV.br_blockcount - new->br_blockcount,
1498 if ((error = xfs_bmbt_update(cur, new->br_startoff,
1499 new->br_startblock,
1500 new->br_blockcount + RIGHT.br_blockcount,
1513 PREV.br_blockcount - new->br_blockcount);
1516 xfs_iext_insert(ip, idx + 1, 1, new, state);
1530 PREV.br_blockcount - new->br_blockcount,
1533 if ((error = xfs_bmbt_lookup_eq(cur, new->br_startoff,
1534 new->br_startblock, new->br_blockcount,
1553 new->br_startoff - PREV.br_startoff);
1556 r[0] = *new;
1560 r[1].br_startblock = new->br_startblock + new->br_blockcount;
1574 /* new right extent - oldext */
1579 /* new left extent - oldext */
1582 new->br_startoff - PREV.br_startoff;
1587 * Reset the cursor to the position of the new extent
1591 if ((error = xfs_bmbt_lookup_eq(cur, new->br_startoff,
1592 new->br_startblock, new->br_blockcount,
1596 /* new middle extent - newext */
1597 cur->bc_rec.b.br_state = new->br_state;
1634 xfs_bmbt_irec_t *new, /* new data to add to file extents */
1641 xfs_filblks_t newlen=0; /* new indirect size */
1650 ASSERT(isnullstartblock(new->br_startblock));
1680 left.br_startoff + left.br_blockcount == new->br_startoff &&
1681 left.br_blockcount + new->br_blockcount <= MAXEXTLEN)
1685 new->br_startoff + new->br_blockcount == right.br_startoff &&
1686 new->br_blockcount + right.br_blockcount <= MAXEXTLEN &&
1688 (left.br_blockcount + new->br_blockcount +
1702 temp = left.br_blockcount + new->br_blockcount +
1708 startblockval(new->br_startblock) +
1723 * Merge the new allocation with the left neighbor.
1725 temp = left.br_blockcount + new->br_blockcount;
1729 startblockval(new->br_startblock);
1742 * Merge the new allocation with the right neighbor.
1745 temp = new->br_blockcount + right.br_blockcount;
1746 oldlen = startblockval(new->br_startblock) +
1749 xfs_bmbt_set_allf(ep, new->br_startoff,
1760 * Insert a new entry.
1763 xfs_iext_insert(ip, idx, 1, new, state);
1788 xfs_bmbt_irec_t *new, /* new data to add to file extents */
1835 left.br_startoff + left.br_blockcount == new->br_startoff &&
1836 left.br_startblock + left.br_blockcount == new->br_startblock &&
1837 left.br_state == new->br_state &&
1838 left.br_blockcount + new->br_blockcount <= MAXEXTLEN)
1842 new->br_startoff + new->br_blockcount == right.br_startoff &&
1843 new->br_startblock + new->br_blockcount == right.br_startblock &&
1844 new->br_state == right.br_state &&
1845 new->br_blockcount + right.br_blockcount <= MAXEXTLEN &&
1847 left.br_blockcount + new->br_blockcount +
1864 left.br_blockcount + new->br_blockcount +
1891 new->br_blockcount +
1902 * Merge the new allocation with the left neighbor.
1906 left.br_blockcount + new->br_blockcount);
1923 new->br_blockcount,
1933 * Merge the new allocation with the right neighbor.
1936 xfs_bmbt_set_allf(ep, new->br_startoff, new->br_startblock,
1937 new->br_blockcount + right.br_blockcount,
1952 if ((error = xfs_bmbt_update(cur, new->br_startoff,
1953 new->br_startblock,
1954 new->br_blockcount +
1965 * Insert a new entry.
1967 xfs_iext_insert(ip, idx, 1, new, state);
1976 new->br_startoff,
1977 new->br_startblock,
1978 new->br_blockcount, &i)))
1981 cur->bc_rec.b.br_state = new->br_state;
1994 * Adjust the size of the new extent based on di_extsize and rt extsize.
2729 * It figures out where to ask the underlying allocator to put the new extent.
2815 xfs_filblks_t da_new; /* new delay-alloc indirect blocks */
2830 xfs_bmbt_irec_t new; /* new record to be inserted */
3002 new.br_startoff = del_endoff;
3004 new.br_blockcount = temp2;
3005 new.br_state = got.br_state;
3007 new.br_startblock = del_endblock;
3017 cur->bc_rec.b = new;
3068 new.br_startblock = nullstartblock((int)temp2);
3082 new.br_startblock =
3088 xfs_iext_insert(ip, idx + 1, 1, &new, state);
3142 * The new file will have a root block (in the inode) and a single child block.
3553 int size, /* space new attribute needs */
3702 xfs_bmap_free_item_t *new; /* new element */
3720 new = kmem_zone_alloc(xfs_bmap_free_item_zone, KM_SLEEP);
3721 new->xbfi_startblock = bno;
3722 new->xbfi_blockcount = (xfs_extlen_t)len;
3730 prev->xbfi_next = new;
3732 flist->xbf_first = new;
3733 new->xbfi_next = cur;
3801 * Return 1 if the given transaction was committed and a new one
3815 unsigned int logres; /* new log reservation */
3816 unsigned int logcount; /* new log count */
3819 xfs_trans_t *ntp; /* new transaction pointer */
3838 * We have a new transaction, so we should return committed=1,
5581 * in blocks being allocated at the end of the file. When we allocate new data
5583 * we will try to align the new blocks at stripe unit boundaries.