Lines Matching full:new
526 * growing the last AG. This extent is new space and so it is not tracked as
584 * just found as it is new space and won't be used by anyone. This is in xfs_rmap_unmap()
691 * record to the length of the new left-extent size, increment in xfs_rmap_unmap()
692 * the insertion position so we can insert a new record in xfs_rmap_unmap()
797 * When we allocate a new block, the first thing we do is add a reference to
962 * new record at current cursor position. in xfs_rmap_map()
1025 #define NEW r[3] macro
1042 /* prev is 2, new is 3 */ in xfs_rmap_convert()
1194 * The left and right neighbors are both contiguous with new. in xfs_rmap_convert()
1239 NEW = LEFT; in xfs_rmap_convert()
1240 NEW.rm_blockcount += PREV.rm_blockcount + RIGHT.rm_blockcount; in xfs_rmap_convert()
1241 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1269 NEW = LEFT; in xfs_rmap_convert()
1270 NEW.rm_blockcount += PREV.rm_blockcount; in xfs_rmap_convert()
1271 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1306 NEW = PREV; in xfs_rmap_convert()
1307 NEW.rm_blockcount = len + RIGHT.rm_blockcount; in xfs_rmap_convert()
1308 NEW.rm_flags = newext; in xfs_rmap_convert()
1309 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1318 * the new one. in xfs_rmap_convert()
1320 NEW = PREV; in xfs_rmap_convert()
1321 NEW.rm_flags = newext; in xfs_rmap_convert()
1322 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1332 NEW = PREV; in xfs_rmap_convert()
1333 NEW.rm_offset += len; in xfs_rmap_convert()
1334 NEW.rm_startblock += len; in xfs_rmap_convert()
1335 NEW.rm_blockcount -= len; in xfs_rmap_convert()
1336 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1342 NEW = LEFT; in xfs_rmap_convert()
1343 NEW.rm_blockcount += len; in xfs_rmap_convert()
1344 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1354 NEW = PREV; in xfs_rmap_convert()
1355 NEW.rm_startblock += len; in xfs_rmap_convert()
1356 NEW.rm_offset += len; in xfs_rmap_convert()
1357 NEW.rm_blockcount -= len; in xfs_rmap_convert()
1358 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1361 NEW.rm_startblock = bno; in xfs_rmap_convert()
1362 NEW.rm_owner = owner; in xfs_rmap_convert()
1363 NEW.rm_offset = offset; in xfs_rmap_convert()
1364 NEW.rm_blockcount = len; in xfs_rmap_convert()
1365 NEW.rm_flags = newext; in xfs_rmap_convert()
1366 cur->bc_rec.r = NEW; in xfs_rmap_convert()
1381 * The right neighbor is contiguous with the new allocation. in xfs_rmap_convert()
1383 NEW = PREV; 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 = RIGHT; in xfs_rmap_convert()
1392 NEW.rm_offset = offset; in xfs_rmap_convert()
1393 NEW.rm_startblock = bno; in xfs_rmap_convert()
1394 NEW.rm_blockcount += len; in xfs_rmap_convert()
1395 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1405 NEW = PREV; in xfs_rmap_convert()
1406 NEW.rm_blockcount -= len; in xfs_rmap_convert()
1407 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1418 NEW.rm_startblock = bno; in xfs_rmap_convert()
1419 NEW.rm_owner = owner; in xfs_rmap_convert()
1420 NEW.rm_offset = offset; in xfs_rmap_convert()
1421 NEW.rm_blockcount = len; in xfs_rmap_convert()
1422 NEW.rm_flags = newext; in xfs_rmap_convert()
1423 cur->bc_rec.r = NEW; in xfs_rmap_convert()
1441 /* new right extent - oldext */ in xfs_rmap_convert()
1442 NEW.rm_startblock = bno + len; in xfs_rmap_convert()
1443 NEW.rm_owner = owner; in xfs_rmap_convert()
1444 NEW.rm_offset = new_endoff; in xfs_rmap_convert()
1445 NEW.rm_blockcount = PREV.rm_offset + PREV.rm_blockcount - in xfs_rmap_convert()
1447 NEW.rm_flags = PREV.rm_flags; in xfs_rmap_convert()
1448 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1451 /* new left extent - oldext */ in xfs_rmap_convert()
1452 NEW = PREV; in xfs_rmap_convert()
1453 NEW.rm_blockcount = offset - PREV.rm_offset; in xfs_rmap_convert()
1454 cur->bc_rec.r = NEW; in xfs_rmap_convert()
1456 NEW.rm_startblock, NEW.rm_blockcount, in xfs_rmap_convert()
1457 NEW.rm_owner, NEW.rm_offset, in xfs_rmap_convert()
1458 NEW.rm_flags); in xfs_rmap_convert()
1467 * Reset the cursor to the position of the new extent in xfs_rmap_convert()
1479 /* new middle extent - newext */ in xfs_rmap_convert()
1531 /* prev is 2, new is 3 */ in xfs_rmap_convert_shared()
1641 * The left and right neighbors are both contiguous with new. in xfs_rmap_convert_shared()
1653 NEW = LEFT; in xfs_rmap_convert_shared()
1654 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1655 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1656 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1663 NEW.rm_blockcount += PREV.rm_blockcount + RIGHT.rm_blockcount; in xfs_rmap_convert_shared()
1664 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1679 NEW = LEFT; in xfs_rmap_convert_shared()
1680 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1681 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1682 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1689 NEW.rm_blockcount += PREV.rm_blockcount; in xfs_rmap_convert_shared()
1690 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1705 NEW = PREV; in xfs_rmap_convert_shared()
1706 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1707 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1708 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1715 NEW.rm_blockcount += RIGHT.rm_blockcount; in xfs_rmap_convert_shared()
1716 NEW.rm_flags = RIGHT.rm_flags; in xfs_rmap_convert_shared()
1717 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1726 * the new one. in xfs_rmap_convert_shared()
1728 NEW = PREV; 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_flags = newext; in xfs_rmap_convert_shared()
1739 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1749 NEW = PREV; in xfs_rmap_convert_shared()
1750 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1751 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1752 NEW.rm_offset, NEW.rm_flags); in xfs_rmap_convert_shared()
1755 NEW.rm_offset += len; in xfs_rmap_convert_shared()
1756 NEW.rm_startblock += len; in xfs_rmap_convert_shared()
1757 NEW.rm_blockcount -= len; in xfs_rmap_convert_shared()
1758 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1759 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1760 NEW.rm_offset, NEW.rm_flags); in xfs_rmap_convert_shared()
1763 NEW = LEFT; in xfs_rmap_convert_shared()
1764 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1765 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1766 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1773 NEW.rm_blockcount += len; in xfs_rmap_convert_shared()
1774 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1784 NEW = PREV; in xfs_rmap_convert_shared()
1785 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1786 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1787 NEW.rm_offset, NEW.rm_flags); in xfs_rmap_convert_shared()
1790 NEW.rm_offset += len; in xfs_rmap_convert_shared()
1791 NEW.rm_startblock += len; in xfs_rmap_convert_shared()
1792 NEW.rm_blockcount -= len; in xfs_rmap_convert_shared()
1793 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1794 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1795 NEW.rm_offset, NEW.rm_flags); in xfs_rmap_convert_shared()
1806 * The right neighbor is contiguous with the new allocation. in xfs_rmap_convert_shared()
1808 NEW = PREV; in xfs_rmap_convert_shared()
1809 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1810 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1811 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1818 NEW.rm_blockcount = offset - NEW.rm_offset; in xfs_rmap_convert_shared()
1819 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1822 NEW = RIGHT; in xfs_rmap_convert_shared()
1823 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1824 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1825 NEW.rm_offset, NEW.rm_flags); in xfs_rmap_convert_shared()
1828 NEW.rm_offset = offset; in xfs_rmap_convert_shared()
1829 NEW.rm_startblock = bno; in xfs_rmap_convert_shared()
1830 NEW.rm_blockcount += len; in xfs_rmap_convert_shared()
1831 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1832 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1833 NEW.rm_offset, NEW.rm_flags); in xfs_rmap_convert_shared()
1843 NEW = PREV; in xfs_rmap_convert_shared()
1844 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1845 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1846 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1853 NEW.rm_blockcount -= len; in xfs_rmap_convert_shared()
1854 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1868 /* new right extent - oldext */ in xfs_rmap_convert_shared()
1869 NEW.rm_startblock = bno + len; in xfs_rmap_convert_shared()
1870 NEW.rm_owner = owner; in xfs_rmap_convert_shared()
1871 NEW.rm_offset = new_endoff; in xfs_rmap_convert_shared()
1872 NEW.rm_blockcount = PREV.rm_offset + PREV.rm_blockcount - in xfs_rmap_convert_shared()
1874 NEW.rm_flags = PREV.rm_flags; in xfs_rmap_convert_shared()
1875 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1876 NEW.rm_blockcount, NEW.rm_owner, NEW.rm_offset, in xfs_rmap_convert_shared()
1877 NEW.rm_flags); in xfs_rmap_convert_shared()
1880 /* new left extent - oldext */ in xfs_rmap_convert_shared()
1881 NEW = PREV; in xfs_rmap_convert_shared()
1882 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1883 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1884 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1891 NEW.rm_blockcount = offset - NEW.rm_offset; in xfs_rmap_convert_shared()
1892 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1895 /* new middle extent - newext */ in xfs_rmap_convert_shared()
1896 NEW.rm_startblock = bno; in xfs_rmap_convert_shared()
1897 NEW.rm_blockcount = len; in xfs_rmap_convert_shared()
1898 NEW.rm_owner = owner; in xfs_rmap_convert_shared()
1899 NEW.rm_offset = offset; in xfs_rmap_convert_shared()
1900 NEW.rm_flags = newext; in xfs_rmap_convert_shared()
1901 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1902 NEW.rm_blockcount, NEW.rm_owner, NEW.rm_offset, in xfs_rmap_convert_shared()
1903 NEW.rm_flags); in xfs_rmap_convert_shared()
1930 #undef NEW
2041 /* Add an rmap at the new offset. */ in xfs_rmap_unmap_shared()
2077 * record to the length of the new left-extent size, increment in xfs_rmap_unmap_shared()
2078 * the insertion position so we can insert a new record in xfs_rmap_unmap_shared()
2104 /* Add an rmap at the new offset */ in xfs_rmap_unmap_shared()
2265 * new record at current cursor position. in xfs_rmap_map_shared()