Lines Matching full:new

663  * growing the last AG. This extent is new space and so it is not tracked as
720 * just found as it is new space and won't be used by anyone. This is in xfs_rmap_unmap()
830 * record to the length of the new left-extent size, increment in xfs_rmap_unmap()
831 * the insertion position so we can insert a new record in xfs_rmap_unmap()
1014 * When we allocate a new block, the first thing we do is add a reference to
1178 * new record at current cursor position. in xfs_rmap_map()
1241 #define NEW r[3] macro
1258 /* prev is 2, new is 3 */ in xfs_rmap_convert()
1413 * The left and right neighbors are both contiguous with new. in xfs_rmap_convert()
1461 NEW = LEFT; in xfs_rmap_convert()
1462 NEW.rm_blockcount += PREV.rm_blockcount + RIGHT.rm_blockcount; in xfs_rmap_convert()
1463 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1492 NEW = LEFT; in xfs_rmap_convert()
1493 NEW.rm_blockcount += PREV.rm_blockcount; in xfs_rmap_convert()
1494 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1531 NEW = PREV; in xfs_rmap_convert()
1532 NEW.rm_blockcount = len + RIGHT.rm_blockcount; in xfs_rmap_convert()
1533 NEW.rm_flags = newext; in xfs_rmap_convert()
1534 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1543 * the new one. in xfs_rmap_convert()
1545 NEW = PREV; in xfs_rmap_convert()
1546 NEW.rm_flags = newext; in xfs_rmap_convert()
1547 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1557 NEW = PREV; in xfs_rmap_convert()
1558 NEW.rm_offset += len; in xfs_rmap_convert()
1559 NEW.rm_startblock += len; in xfs_rmap_convert()
1560 NEW.rm_blockcount -= len; in xfs_rmap_convert()
1561 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1567 NEW = LEFT; in xfs_rmap_convert()
1568 NEW.rm_blockcount += len; in xfs_rmap_convert()
1569 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1579 NEW = PREV; in xfs_rmap_convert()
1580 NEW.rm_startblock += len; in xfs_rmap_convert()
1581 NEW.rm_offset += len; in xfs_rmap_convert()
1582 NEW.rm_blockcount -= len; in xfs_rmap_convert()
1583 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1586 NEW.rm_startblock = bno; in xfs_rmap_convert()
1587 NEW.rm_owner = owner; in xfs_rmap_convert()
1588 NEW.rm_offset = offset; in xfs_rmap_convert()
1589 NEW.rm_blockcount = len; in xfs_rmap_convert()
1590 NEW.rm_flags = newext; in xfs_rmap_convert()
1591 cur->bc_rec.r = NEW; in xfs_rmap_convert()
1606 * The right neighbor is contiguous with the new allocation. in xfs_rmap_convert()
1608 NEW = PREV; in xfs_rmap_convert()
1609 NEW.rm_blockcount -= len; in xfs_rmap_convert()
1610 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1616 NEW = RIGHT; in xfs_rmap_convert()
1617 NEW.rm_offset = offset; in xfs_rmap_convert()
1618 NEW.rm_startblock = bno; in xfs_rmap_convert()
1619 NEW.rm_blockcount += len; in xfs_rmap_convert()
1620 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1630 NEW = PREV; in xfs_rmap_convert()
1631 NEW.rm_blockcount -= len; in xfs_rmap_convert()
1632 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1644 NEW.rm_startblock = bno; in xfs_rmap_convert()
1645 NEW.rm_owner = owner; in xfs_rmap_convert()
1646 NEW.rm_offset = offset; in xfs_rmap_convert()
1647 NEW.rm_blockcount = len; in xfs_rmap_convert()
1648 NEW.rm_flags = newext; in xfs_rmap_convert()
1649 cur->bc_rec.r = NEW; in xfs_rmap_convert()
1667 /* new right extent - oldext */ in xfs_rmap_convert()
1668 NEW.rm_startblock = bno + len; in xfs_rmap_convert()
1669 NEW.rm_owner = owner; in xfs_rmap_convert()
1670 NEW.rm_offset = new_endoff; in xfs_rmap_convert()
1671 NEW.rm_blockcount = PREV.rm_offset + PREV.rm_blockcount - in xfs_rmap_convert()
1673 NEW.rm_flags = PREV.rm_flags; in xfs_rmap_convert()
1674 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1677 /* new left extent - oldext */ in xfs_rmap_convert()
1678 NEW = PREV; in xfs_rmap_convert()
1679 NEW.rm_blockcount = offset - PREV.rm_offset; in xfs_rmap_convert()
1680 cur->bc_rec.r = NEW; in xfs_rmap_convert()
1681 trace_xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert()
1682 NEW.rm_blockcount, NEW.rm_owner, NEW.rm_offset, in xfs_rmap_convert()
1683 NEW.rm_flags); in xfs_rmap_convert()
1693 * Reset the cursor to the position of the new extent in xfs_rmap_convert()
1706 /* new middle extent - newext */ in xfs_rmap_convert()
1756 /* prev is 2, new is 3 */ in xfs_rmap_convert_shared()
1868 * The left and right neighbors are both contiguous with new. in xfs_rmap_convert_shared()
1880 NEW = LEFT; in xfs_rmap_convert_shared()
1881 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1882 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1883 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1891 NEW.rm_blockcount += PREV.rm_blockcount + RIGHT.rm_blockcount; in xfs_rmap_convert_shared()
1892 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1907 NEW = LEFT; in xfs_rmap_convert_shared()
1908 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1909 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1910 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1918 NEW.rm_blockcount += PREV.rm_blockcount; in xfs_rmap_convert_shared()
1919 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1934 NEW = PREV; in xfs_rmap_convert_shared()
1935 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1936 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1937 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1945 NEW.rm_blockcount += RIGHT.rm_blockcount; in xfs_rmap_convert_shared()
1946 NEW.rm_flags = RIGHT.rm_flags; in xfs_rmap_convert_shared()
1947 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1956 * the new one. in xfs_rmap_convert_shared()
1958 NEW = PREV; in xfs_rmap_convert_shared()
1959 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1960 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1961 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1969 NEW.rm_flags = newext; in xfs_rmap_convert_shared()
1970 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1980 NEW = PREV; in xfs_rmap_convert_shared()
1981 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1982 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1983 NEW.rm_offset, NEW.rm_flags); in xfs_rmap_convert_shared()
1986 NEW.rm_offset += len; in xfs_rmap_convert_shared()
1987 NEW.rm_startblock += len; in xfs_rmap_convert_shared()
1988 NEW.rm_blockcount -= len; in xfs_rmap_convert_shared()
1989 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1990 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1991 NEW.rm_offset, NEW.rm_flags); in xfs_rmap_convert_shared()
1994 NEW = LEFT; in xfs_rmap_convert_shared()
1995 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1996 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1997 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
2005 NEW.rm_blockcount += len; in xfs_rmap_convert_shared()
2006 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
2016 NEW = PREV; in xfs_rmap_convert_shared()
2017 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
2018 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
2019 NEW.rm_offset, NEW.rm_flags); in xfs_rmap_convert_shared()
2022 NEW.rm_offset += len; in xfs_rmap_convert_shared()
2023 NEW.rm_startblock += len; in xfs_rmap_convert_shared()
2024 NEW.rm_blockcount -= len; in xfs_rmap_convert_shared()
2025 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
2026 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
2027 NEW.rm_offset, NEW.rm_flags); in xfs_rmap_convert_shared()
2038 * The right neighbor is contiguous with the new allocation. in xfs_rmap_convert_shared()
2040 NEW = PREV; in xfs_rmap_convert_shared()
2041 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
2042 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
2043 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
2051 NEW.rm_blockcount = offset - NEW.rm_offset; in xfs_rmap_convert_shared()
2052 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
2055 NEW = RIGHT; in xfs_rmap_convert_shared()
2056 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
2057 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
2058 NEW.rm_offset, NEW.rm_flags); in xfs_rmap_convert_shared()
2061 NEW.rm_offset = offset; in xfs_rmap_convert_shared()
2062 NEW.rm_startblock = bno; in xfs_rmap_convert_shared()
2063 NEW.rm_blockcount += len; in xfs_rmap_convert_shared()
2064 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
2065 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
2066 NEW.rm_offset, NEW.rm_flags); in xfs_rmap_convert_shared()
2076 NEW = PREV; in xfs_rmap_convert_shared()
2077 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
2078 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
2079 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
2087 NEW.rm_blockcount -= len; in xfs_rmap_convert_shared()
2088 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
2102 /* new right extent - oldext */ in xfs_rmap_convert_shared()
2103 NEW.rm_startblock = bno + len; in xfs_rmap_convert_shared()
2104 NEW.rm_owner = owner; in xfs_rmap_convert_shared()
2105 NEW.rm_offset = new_endoff; in xfs_rmap_convert_shared()
2106 NEW.rm_blockcount = PREV.rm_offset + PREV.rm_blockcount - in xfs_rmap_convert_shared()
2108 NEW.rm_flags = PREV.rm_flags; in xfs_rmap_convert_shared()
2109 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
2110 NEW.rm_blockcount, NEW.rm_owner, NEW.rm_offset, in xfs_rmap_convert_shared()
2111 NEW.rm_flags); in xfs_rmap_convert_shared()
2114 /* new left extent - oldext */ in xfs_rmap_convert_shared()
2115 NEW = PREV; in xfs_rmap_convert_shared()
2116 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
2117 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
2118 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
2126 NEW.rm_blockcount = offset - NEW.rm_offset; in xfs_rmap_convert_shared()
2127 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
2130 /* new middle extent - newext */ in xfs_rmap_convert_shared()
2131 NEW.rm_startblock = bno; in xfs_rmap_convert_shared()
2132 NEW.rm_blockcount = len; in xfs_rmap_convert_shared()
2133 NEW.rm_owner = owner; in xfs_rmap_convert_shared()
2134 NEW.rm_offset = offset; in xfs_rmap_convert_shared()
2135 NEW.rm_flags = newext; in xfs_rmap_convert_shared()
2136 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
2137 NEW.rm_blockcount, NEW.rm_owner, NEW.rm_offset, in xfs_rmap_convert_shared()
2138 NEW.rm_flags); in xfs_rmap_convert_shared()
2163 #undef NEW
2279 /* Add an rmap at the new offset. */ in xfs_rmap_unmap_shared()
2316 * record to the length of the new left-extent size, increment in xfs_rmap_unmap_shared()
2317 * the insertion position so we can insert a new record in xfs_rmap_unmap_shared()
2344 /* Add an rmap at the new offset */ in xfs_rmap_unmap_shared()
2504 * new record at current cursor position. in xfs_rmap_map_shared()