Lines Matching full:new
575 * growing the last AG. This extent is new space and so it is not tracked as
633 * just found as it is new space and won't be used by anyone. This is in xfs_rmap_unmap()
740 * record to the length of the new left-extent size, increment in xfs_rmap_unmap()
741 * the insertion position so we can insert a new record in xfs_rmap_unmap()
846 * When we allocate a new block, the first thing we do is add a reference to
1011 * new record at current cursor position. in xfs_rmap_map()
1074 #define NEW r[3] macro
1091 /* prev is 2, new is 3 */ in xfs_rmap_convert()
1243 * The left and right neighbors are both contiguous with new. in xfs_rmap_convert()
1288 NEW = LEFT; in xfs_rmap_convert()
1289 NEW.rm_blockcount += PREV.rm_blockcount + RIGHT.rm_blockcount; in xfs_rmap_convert()
1290 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1318 NEW = LEFT; in xfs_rmap_convert()
1319 NEW.rm_blockcount += PREV.rm_blockcount; in xfs_rmap_convert()
1320 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1355 NEW = PREV; in xfs_rmap_convert()
1356 NEW.rm_blockcount = len + RIGHT.rm_blockcount; in xfs_rmap_convert()
1357 NEW.rm_flags = newext; in xfs_rmap_convert()
1358 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1367 * the new one. in xfs_rmap_convert()
1369 NEW = PREV; in xfs_rmap_convert()
1370 NEW.rm_flags = newext; in xfs_rmap_convert()
1371 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1381 NEW = PREV; in xfs_rmap_convert()
1382 NEW.rm_offset += len; in xfs_rmap_convert()
1383 NEW.rm_startblock += len; in xfs_rmap_convert()
1384 NEW.rm_blockcount -= len; in xfs_rmap_convert()
1385 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1391 NEW = LEFT; in xfs_rmap_convert()
1392 NEW.rm_blockcount += len; in xfs_rmap_convert()
1393 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1403 NEW = PREV; in xfs_rmap_convert()
1404 NEW.rm_startblock += len; in xfs_rmap_convert()
1405 NEW.rm_offset += len; in xfs_rmap_convert()
1406 NEW.rm_blockcount -= len; in xfs_rmap_convert()
1407 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1410 NEW.rm_startblock = bno; in xfs_rmap_convert()
1411 NEW.rm_owner = owner; in xfs_rmap_convert()
1412 NEW.rm_offset = offset; in xfs_rmap_convert()
1413 NEW.rm_blockcount = len; in xfs_rmap_convert()
1414 NEW.rm_flags = newext; in xfs_rmap_convert()
1415 cur->bc_rec.r = NEW; in xfs_rmap_convert()
1430 * The right neighbor is contiguous with the new allocation. in xfs_rmap_convert()
1432 NEW = PREV; in xfs_rmap_convert()
1433 NEW.rm_blockcount -= len; in xfs_rmap_convert()
1434 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1440 NEW = RIGHT; in xfs_rmap_convert()
1441 NEW.rm_offset = offset; in xfs_rmap_convert()
1442 NEW.rm_startblock = bno; in xfs_rmap_convert()
1443 NEW.rm_blockcount += len; in xfs_rmap_convert()
1444 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1454 NEW = PREV; in xfs_rmap_convert()
1455 NEW.rm_blockcount -= len; in xfs_rmap_convert()
1456 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1467 NEW.rm_startblock = bno; in xfs_rmap_convert()
1468 NEW.rm_owner = owner; in xfs_rmap_convert()
1469 NEW.rm_offset = offset; in xfs_rmap_convert()
1470 NEW.rm_blockcount = len; in xfs_rmap_convert()
1471 NEW.rm_flags = newext; in xfs_rmap_convert()
1472 cur->bc_rec.r = NEW; in xfs_rmap_convert()
1490 /* new right extent - oldext */ in xfs_rmap_convert()
1491 NEW.rm_startblock = bno + len; in xfs_rmap_convert()
1492 NEW.rm_owner = owner; in xfs_rmap_convert()
1493 NEW.rm_offset = new_endoff; in xfs_rmap_convert()
1494 NEW.rm_blockcount = PREV.rm_offset + PREV.rm_blockcount - in xfs_rmap_convert()
1496 NEW.rm_flags = PREV.rm_flags; in xfs_rmap_convert()
1497 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1500 /* new left extent - oldext */ in xfs_rmap_convert()
1501 NEW = PREV; in xfs_rmap_convert()
1502 NEW.rm_blockcount = offset - PREV.rm_offset; in xfs_rmap_convert()
1503 cur->bc_rec.r = NEW; in xfs_rmap_convert()
1505 NEW.rm_startblock, NEW.rm_blockcount, in xfs_rmap_convert()
1506 NEW.rm_owner, NEW.rm_offset, in xfs_rmap_convert()
1507 NEW.rm_flags); in xfs_rmap_convert()
1516 * Reset the cursor to the position of the new extent in xfs_rmap_convert()
1528 /* new middle extent - newext */ in xfs_rmap_convert()
1580 /* prev is 2, new is 3 */ in xfs_rmap_convert_shared()
1690 * The left and right neighbors are both contiguous with new. in xfs_rmap_convert_shared()
1702 NEW = LEFT; in xfs_rmap_convert_shared()
1703 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1704 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1705 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1712 NEW.rm_blockcount += PREV.rm_blockcount + RIGHT.rm_blockcount; in xfs_rmap_convert_shared()
1713 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1728 NEW = LEFT; in xfs_rmap_convert_shared()
1729 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1730 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1731 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1738 NEW.rm_blockcount += PREV.rm_blockcount; in xfs_rmap_convert_shared()
1739 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1754 NEW = PREV; in xfs_rmap_convert_shared()
1755 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1756 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1757 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1764 NEW.rm_blockcount += RIGHT.rm_blockcount; in xfs_rmap_convert_shared()
1765 NEW.rm_flags = RIGHT.rm_flags; in xfs_rmap_convert_shared()
1766 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1775 * the new one. in xfs_rmap_convert_shared()
1777 NEW = PREV; in xfs_rmap_convert_shared()
1778 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1779 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1780 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1787 NEW.rm_flags = newext; in xfs_rmap_convert_shared()
1788 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1798 NEW = PREV; in xfs_rmap_convert_shared()
1799 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1800 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1801 NEW.rm_offset, NEW.rm_flags); in xfs_rmap_convert_shared()
1804 NEW.rm_offset += len; in xfs_rmap_convert_shared()
1805 NEW.rm_startblock += len; in xfs_rmap_convert_shared()
1806 NEW.rm_blockcount -= len; in xfs_rmap_convert_shared()
1807 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1808 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1809 NEW.rm_offset, NEW.rm_flags); in xfs_rmap_convert_shared()
1812 NEW = LEFT; in xfs_rmap_convert_shared()
1813 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1814 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1815 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1822 NEW.rm_blockcount += len; in xfs_rmap_convert_shared()
1823 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1833 NEW = PREV; in xfs_rmap_convert_shared()
1834 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1835 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1836 NEW.rm_offset, NEW.rm_flags); in xfs_rmap_convert_shared()
1839 NEW.rm_offset += len; in xfs_rmap_convert_shared()
1840 NEW.rm_startblock += len; in xfs_rmap_convert_shared()
1841 NEW.rm_blockcount -= len; in xfs_rmap_convert_shared()
1842 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1843 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1844 NEW.rm_offset, NEW.rm_flags); in xfs_rmap_convert_shared()
1855 * The right neighbor is contiguous with the new allocation. in xfs_rmap_convert_shared()
1857 NEW = PREV; in xfs_rmap_convert_shared()
1858 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1859 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1860 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1867 NEW.rm_blockcount = offset - NEW.rm_offset; in xfs_rmap_convert_shared()
1868 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1871 NEW = RIGHT; in xfs_rmap_convert_shared()
1872 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1873 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1874 NEW.rm_offset, NEW.rm_flags); in xfs_rmap_convert_shared()
1877 NEW.rm_offset = offset; in xfs_rmap_convert_shared()
1878 NEW.rm_startblock = bno; in xfs_rmap_convert_shared()
1879 NEW.rm_blockcount += len; in xfs_rmap_convert_shared()
1880 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1881 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1882 NEW.rm_offset, NEW.rm_flags); in xfs_rmap_convert_shared()
1892 NEW = PREV; in xfs_rmap_convert_shared()
1893 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1894 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1895 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1902 NEW.rm_blockcount -= len; in xfs_rmap_convert_shared()
1903 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1917 /* new right extent - oldext */ in xfs_rmap_convert_shared()
1918 NEW.rm_startblock = bno + len; in xfs_rmap_convert_shared()
1919 NEW.rm_owner = owner; in xfs_rmap_convert_shared()
1920 NEW.rm_offset = new_endoff; in xfs_rmap_convert_shared()
1921 NEW.rm_blockcount = PREV.rm_offset + PREV.rm_blockcount - in xfs_rmap_convert_shared()
1923 NEW.rm_flags = PREV.rm_flags; in xfs_rmap_convert_shared()
1924 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1925 NEW.rm_blockcount, NEW.rm_owner, NEW.rm_offset, in xfs_rmap_convert_shared()
1926 NEW.rm_flags); in xfs_rmap_convert_shared()
1929 /* new left extent - oldext */ in xfs_rmap_convert_shared()
1930 NEW = PREV; in xfs_rmap_convert_shared()
1931 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1932 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1933 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1940 NEW.rm_blockcount = offset - NEW.rm_offset; in xfs_rmap_convert_shared()
1941 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1944 /* new middle extent - newext */ in xfs_rmap_convert_shared()
1945 NEW.rm_startblock = bno; in xfs_rmap_convert_shared()
1946 NEW.rm_blockcount = len; in xfs_rmap_convert_shared()
1947 NEW.rm_owner = owner; in xfs_rmap_convert_shared()
1948 NEW.rm_offset = offset; in xfs_rmap_convert_shared()
1949 NEW.rm_flags = newext; in xfs_rmap_convert_shared()
1950 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1951 NEW.rm_blockcount, NEW.rm_owner, NEW.rm_offset, in xfs_rmap_convert_shared()
1952 NEW.rm_flags); in xfs_rmap_convert_shared()
1979 #undef NEW
2090 /* Add an rmap at the new offset. */ in xfs_rmap_unmap_shared()
2126 * record to the length of the new left-extent size, increment in xfs_rmap_unmap_shared()
2127 * the insertion position so we can insert a new record in xfs_rmap_unmap_shared()
2153 /* Add an rmap at the new offset */ in xfs_rmap_unmap_shared()
2314 * new record at current cursor position. in xfs_rmap_map_shared()