Lines Matching full:new
467 * growing the last AG. This extent is new space and so it is not tracked as
532 * just found as it is new space and won't be used by anyone. This is in xfs_rmap_unmap()
639 * record to the length of the new left-extent size, increment in xfs_rmap_unmap()
640 * the insertion position so we can insert a new record in xfs_rmap_unmap()
745 * When we allocate a new block, the first thing we do is add a reference to
917 * new record at current cursor position. in xfs_rmap_map()
980 #define NEW r[3] macro
997 /* prev is 2, new is 3 */ in xfs_rmap_convert()
1156 * The left and right neighbors are both contiguous with new. in xfs_rmap_convert()
1201 NEW = LEFT; in xfs_rmap_convert()
1202 NEW.rm_blockcount += PREV.rm_blockcount + RIGHT.rm_blockcount; in xfs_rmap_convert()
1203 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1231 NEW = LEFT; in xfs_rmap_convert()
1232 NEW.rm_blockcount += PREV.rm_blockcount; in xfs_rmap_convert()
1233 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1268 NEW = PREV; in xfs_rmap_convert()
1269 NEW.rm_blockcount = len + RIGHT.rm_blockcount; in xfs_rmap_convert()
1270 NEW.rm_flags = newext; in xfs_rmap_convert()
1271 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1280 * the new one. in xfs_rmap_convert()
1282 NEW = PREV; in xfs_rmap_convert()
1283 NEW.rm_flags = newext; in xfs_rmap_convert()
1284 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1294 NEW = PREV; in xfs_rmap_convert()
1295 NEW.rm_offset += len; in xfs_rmap_convert()
1296 NEW.rm_startblock += len; in xfs_rmap_convert()
1297 NEW.rm_blockcount -= len; in xfs_rmap_convert()
1298 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1304 NEW = LEFT; in xfs_rmap_convert()
1305 NEW.rm_blockcount += len; in xfs_rmap_convert()
1306 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1316 NEW = PREV; in xfs_rmap_convert()
1317 NEW.rm_startblock += len; in xfs_rmap_convert()
1318 NEW.rm_offset += len; in xfs_rmap_convert()
1319 NEW.rm_blockcount -= len; in xfs_rmap_convert()
1320 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1323 NEW.rm_startblock = bno; in xfs_rmap_convert()
1324 NEW.rm_owner = owner; in xfs_rmap_convert()
1325 NEW.rm_offset = offset; in xfs_rmap_convert()
1326 NEW.rm_blockcount = len; in xfs_rmap_convert()
1327 NEW.rm_flags = newext; in xfs_rmap_convert()
1328 cur->bc_rec.r = NEW; in xfs_rmap_convert()
1343 * The right neighbor is contiguous with the new allocation. in xfs_rmap_convert()
1345 NEW = PREV; in xfs_rmap_convert()
1346 NEW.rm_blockcount -= len; in xfs_rmap_convert()
1347 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1353 NEW = RIGHT; in xfs_rmap_convert()
1354 NEW.rm_offset = offset; in xfs_rmap_convert()
1355 NEW.rm_startblock = bno; in xfs_rmap_convert()
1356 NEW.rm_blockcount += len; in xfs_rmap_convert()
1357 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1367 NEW = PREV; in xfs_rmap_convert()
1368 NEW.rm_blockcount -= len; in xfs_rmap_convert()
1369 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1380 NEW.rm_startblock = bno; in xfs_rmap_convert()
1381 NEW.rm_owner = owner; in xfs_rmap_convert()
1382 NEW.rm_offset = offset; in xfs_rmap_convert()
1383 NEW.rm_blockcount = len; in xfs_rmap_convert()
1384 NEW.rm_flags = newext; in xfs_rmap_convert()
1385 cur->bc_rec.r = NEW; in xfs_rmap_convert()
1403 /* new right extent - oldext */ in xfs_rmap_convert()
1404 NEW.rm_startblock = bno + len; in xfs_rmap_convert()
1405 NEW.rm_owner = owner; in xfs_rmap_convert()
1406 NEW.rm_offset = new_endoff; in xfs_rmap_convert()
1407 NEW.rm_blockcount = PREV.rm_offset + PREV.rm_blockcount - in xfs_rmap_convert()
1409 NEW.rm_flags = PREV.rm_flags; in xfs_rmap_convert()
1410 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1413 /* new left extent - oldext */ in xfs_rmap_convert()
1414 NEW = PREV; in xfs_rmap_convert()
1415 NEW.rm_blockcount = offset - PREV.rm_offset; in xfs_rmap_convert()
1416 cur->bc_rec.r = NEW; in xfs_rmap_convert()
1418 NEW.rm_startblock, NEW.rm_blockcount, in xfs_rmap_convert()
1419 NEW.rm_owner, NEW.rm_offset, in xfs_rmap_convert()
1420 NEW.rm_flags); in xfs_rmap_convert()
1429 * Reset the cursor to the position of the new extent in xfs_rmap_convert()
1441 /* new middle extent - newext */ in xfs_rmap_convert()
1493 /* prev is 2, new is 3 */ in xfs_rmap_convert_shared()
1603 * The left and right neighbors are both contiguous with new. in xfs_rmap_convert_shared()
1615 NEW = LEFT; in xfs_rmap_convert_shared()
1616 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1617 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1618 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1625 NEW.rm_blockcount += PREV.rm_blockcount + RIGHT.rm_blockcount; in xfs_rmap_convert_shared()
1626 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1641 NEW = LEFT; in xfs_rmap_convert_shared()
1642 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1643 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1644 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1651 NEW.rm_blockcount += PREV.rm_blockcount; in xfs_rmap_convert_shared()
1652 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1667 NEW = PREV; in xfs_rmap_convert_shared()
1668 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1669 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1670 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1677 NEW.rm_blockcount += RIGHT.rm_blockcount; in xfs_rmap_convert_shared()
1678 NEW.rm_flags = RIGHT.rm_flags; in xfs_rmap_convert_shared()
1679 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1688 * the new one. in xfs_rmap_convert_shared()
1690 NEW = PREV; in xfs_rmap_convert_shared()
1691 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1692 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1693 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1700 NEW.rm_flags = newext; in xfs_rmap_convert_shared()
1701 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1711 NEW = PREV; in xfs_rmap_convert_shared()
1712 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1713 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1714 NEW.rm_offset, NEW.rm_flags); in xfs_rmap_convert_shared()
1717 NEW.rm_offset += len; in xfs_rmap_convert_shared()
1718 NEW.rm_startblock += len; in xfs_rmap_convert_shared()
1719 NEW.rm_blockcount -= len; in xfs_rmap_convert_shared()
1720 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1721 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1722 NEW.rm_offset, NEW.rm_flags); in xfs_rmap_convert_shared()
1725 NEW = LEFT; in xfs_rmap_convert_shared()
1726 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1727 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1728 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1735 NEW.rm_blockcount += len; in xfs_rmap_convert_shared()
1736 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1746 NEW = PREV; in xfs_rmap_convert_shared()
1747 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1748 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1749 NEW.rm_offset, NEW.rm_flags); in xfs_rmap_convert_shared()
1752 NEW.rm_offset += len; in xfs_rmap_convert_shared()
1753 NEW.rm_startblock += len; in xfs_rmap_convert_shared()
1754 NEW.rm_blockcount -= len; in xfs_rmap_convert_shared()
1755 error = xfs_rmap_insert(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); in xfs_rmap_convert_shared()
1768 * The right neighbor is contiguous with the new allocation. in xfs_rmap_convert_shared()
1770 NEW = PREV; in xfs_rmap_convert_shared()
1771 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1772 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1773 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1780 NEW.rm_blockcount = offset - NEW.rm_offset; in xfs_rmap_convert_shared()
1781 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1784 NEW = RIGHT; 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 = offset; in xfs_rmap_convert_shared()
1791 NEW.rm_startblock = bno; 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()
1805 NEW = PREV; in xfs_rmap_convert_shared()
1806 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1807 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1808 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1815 NEW.rm_blockcount -= len; in xfs_rmap_convert_shared()
1816 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1830 /* new right extent - oldext */ in xfs_rmap_convert_shared()
1831 NEW.rm_startblock = bno + len; in xfs_rmap_convert_shared()
1832 NEW.rm_owner = owner; in xfs_rmap_convert_shared()
1833 NEW.rm_offset = new_endoff; in xfs_rmap_convert_shared()
1834 NEW.rm_blockcount = PREV.rm_offset + PREV.rm_blockcount - in xfs_rmap_convert_shared()
1836 NEW.rm_flags = PREV.rm_flags; in xfs_rmap_convert_shared()
1837 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1838 NEW.rm_blockcount, NEW.rm_owner, NEW.rm_offset, in xfs_rmap_convert_shared()
1839 NEW.rm_flags); in xfs_rmap_convert_shared()
1842 /* new left extent - oldext */ 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 = offset - NEW.rm_offset; in xfs_rmap_convert_shared()
1854 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1857 /* new middle extent - newext */ in xfs_rmap_convert_shared()
1858 NEW.rm_startblock = bno; in xfs_rmap_convert_shared()
1859 NEW.rm_blockcount = len; in xfs_rmap_convert_shared()
1860 NEW.rm_owner = owner; in xfs_rmap_convert_shared()
1861 NEW.rm_offset = offset; in xfs_rmap_convert_shared()
1862 NEW.rm_flags = newext; in xfs_rmap_convert_shared()
1863 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1864 NEW.rm_blockcount, NEW.rm_owner, NEW.rm_offset, in xfs_rmap_convert_shared()
1865 NEW.rm_flags); in xfs_rmap_convert_shared()
1892 #undef NEW
2003 /* Add an rmap at the new offset. */ in xfs_rmap_unmap_shared()
2039 * record to the length of the new left-extent size, increment in xfs_rmap_unmap_shared()
2040 * the insertion position so we can insert a new record in xfs_rmap_unmap_shared()
2066 /* Add an rmap at the new offset */ in xfs_rmap_unmap_shared()
2227 * new record at current cursor position. in xfs_rmap_map_shared()