Lines Matching full:new
448 * growing the last AG. This extent is new space and so it is not tracked as
507 * just found as it is new space and won't be used by anyone. This is in xfs_rmap_unmap()
600 * record to the length of the new left-extent size, increment in xfs_rmap_unmap()
601 * the insertion position so we can insert a new record in xfs_rmap_unmap()
706 * When we allocate a new block, the first thing we do is add a reference to
864 * new record at current cursor position. in xfs_rmap_map()
924 #define NEW r[3] macro
941 /* new is 3 */ in xfs_rmap_convert()
1077 * The left and right neighbors are both contiguous with new. in xfs_rmap_convert()
1107 NEW = LEFT; in xfs_rmap_convert()
1108 NEW.rm_blockcount += PREV.rm_blockcount + RIGHT.rm_blockcount; in xfs_rmap_convert()
1109 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1131 NEW = LEFT; in xfs_rmap_convert()
1132 NEW.rm_blockcount += PREV.rm_blockcount; in xfs_rmap_convert()
1133 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1159 NEW = PREV; in xfs_rmap_convert()
1160 NEW.rm_blockcount = len + RIGHT.rm_blockcount; in xfs_rmap_convert()
1161 NEW.rm_flags = newext; in xfs_rmap_convert()
1162 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1171 * the new one. in xfs_rmap_convert()
1173 NEW = PREV; in xfs_rmap_convert()
1174 NEW.rm_flags = newext; in xfs_rmap_convert()
1175 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1185 NEW = PREV; in xfs_rmap_convert()
1186 NEW.rm_offset += len; in xfs_rmap_convert()
1187 NEW.rm_startblock += len; in xfs_rmap_convert()
1188 NEW.rm_blockcount -= len; in xfs_rmap_convert()
1189 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1195 NEW = LEFT; in xfs_rmap_convert()
1196 NEW.rm_blockcount += len; in xfs_rmap_convert()
1197 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1207 NEW = PREV; in xfs_rmap_convert()
1208 NEW.rm_startblock += len; in xfs_rmap_convert()
1209 NEW.rm_offset += len; in xfs_rmap_convert()
1210 NEW.rm_blockcount -= len; in xfs_rmap_convert()
1211 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1214 NEW.rm_startblock = bno; in xfs_rmap_convert()
1215 NEW.rm_owner = owner; in xfs_rmap_convert()
1216 NEW.rm_offset = offset; in xfs_rmap_convert()
1217 NEW.rm_blockcount = len; in xfs_rmap_convert()
1218 NEW.rm_flags = newext; in xfs_rmap_convert()
1219 cur->bc_rec.r = NEW; in xfs_rmap_convert()
1231 * The right neighbor is contiguous with the new allocation. in xfs_rmap_convert()
1233 NEW = PREV; in xfs_rmap_convert()
1234 NEW.rm_blockcount -= len; in xfs_rmap_convert()
1235 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1241 NEW = RIGHT; in xfs_rmap_convert()
1242 NEW.rm_offset = offset; in xfs_rmap_convert()
1243 NEW.rm_startblock = bno; in xfs_rmap_convert()
1244 NEW.rm_blockcount += len; in xfs_rmap_convert()
1245 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1255 NEW = PREV; in xfs_rmap_convert()
1256 NEW.rm_blockcount -= len; in xfs_rmap_convert()
1257 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1265 NEW.rm_startblock = bno; in xfs_rmap_convert()
1266 NEW.rm_owner = owner; in xfs_rmap_convert()
1267 NEW.rm_offset = offset; in xfs_rmap_convert()
1268 NEW.rm_blockcount = len; in xfs_rmap_convert()
1269 NEW.rm_flags = newext; in xfs_rmap_convert()
1270 cur->bc_rec.r = NEW; in xfs_rmap_convert()
1285 /* new right extent - oldext */ in xfs_rmap_convert()
1286 NEW.rm_startblock = bno + len; in xfs_rmap_convert()
1287 NEW.rm_owner = owner; in xfs_rmap_convert()
1288 NEW.rm_offset = new_endoff; in xfs_rmap_convert()
1289 NEW.rm_blockcount = PREV.rm_offset + PREV.rm_blockcount - in xfs_rmap_convert()
1291 NEW.rm_flags = PREV.rm_flags; in xfs_rmap_convert()
1292 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1295 /* new left extent - oldext */ in xfs_rmap_convert()
1296 NEW = PREV; in xfs_rmap_convert()
1297 NEW.rm_blockcount = offset - PREV.rm_offset; in xfs_rmap_convert()
1298 cur->bc_rec.r = NEW; in xfs_rmap_convert()
1300 NEW.rm_startblock, NEW.rm_blockcount, in xfs_rmap_convert()
1301 NEW.rm_owner, NEW.rm_offset, in xfs_rmap_convert()
1302 NEW.rm_flags); in xfs_rmap_convert()
1308 * Reset the cursor to the position of the new extent in xfs_rmap_convert()
1317 /* new middle extent - newext */ in xfs_rmap_convert()
1366 /* new is 3 */ in xfs_rmap_convert_shared()
1465 * The left and right neighbors are both contiguous with new. in xfs_rmap_convert_shared()
1477 NEW = LEFT; in xfs_rmap_convert_shared()
1478 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1479 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1480 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1484 NEW.rm_blockcount += PREV.rm_blockcount + RIGHT.rm_blockcount; in xfs_rmap_convert_shared()
1485 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1500 NEW = LEFT; in xfs_rmap_convert_shared()
1501 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1502 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1503 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1507 NEW.rm_blockcount += PREV.rm_blockcount; in xfs_rmap_convert_shared()
1508 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1523 NEW = PREV; in xfs_rmap_convert_shared()
1524 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1525 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1526 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1530 NEW.rm_blockcount += RIGHT.rm_blockcount; in xfs_rmap_convert_shared()
1531 NEW.rm_flags = RIGHT.rm_flags; in xfs_rmap_convert_shared()
1532 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1541 * the new one. in xfs_rmap_convert_shared()
1543 NEW = PREV; in xfs_rmap_convert_shared()
1544 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1545 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1546 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1550 NEW.rm_flags = newext; in xfs_rmap_convert_shared()
1551 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1561 NEW = PREV; in xfs_rmap_convert_shared()
1562 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1563 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1564 NEW.rm_offset, NEW.rm_flags); in xfs_rmap_convert_shared()
1567 NEW.rm_offset += len; in xfs_rmap_convert_shared()
1568 NEW.rm_startblock += len; in xfs_rmap_convert_shared()
1569 NEW.rm_blockcount -= len; in xfs_rmap_convert_shared()
1570 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1571 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1572 NEW.rm_offset, NEW.rm_flags); in xfs_rmap_convert_shared()
1575 NEW = LEFT; in xfs_rmap_convert_shared()
1576 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1577 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1578 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1582 NEW.rm_blockcount += len; in xfs_rmap_convert_shared()
1583 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1593 NEW = PREV; in xfs_rmap_convert_shared()
1594 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1595 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1596 NEW.rm_offset, NEW.rm_flags); in xfs_rmap_convert_shared()
1599 NEW.rm_offset += len; in xfs_rmap_convert_shared()
1600 NEW.rm_startblock += len; in xfs_rmap_convert_shared()
1601 NEW.rm_blockcount -= len; in xfs_rmap_convert_shared()
1602 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1603 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1604 NEW.rm_offset, NEW.rm_flags); in xfs_rmap_convert_shared()
1615 * The right neighbor is contiguous with the new allocation. in xfs_rmap_convert_shared()
1617 NEW = PREV; in xfs_rmap_convert_shared()
1618 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1619 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1620 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1624 NEW.rm_blockcount = offset - NEW.rm_offset; in xfs_rmap_convert_shared()
1625 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1628 NEW = RIGHT; in xfs_rmap_convert_shared()
1629 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1630 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1631 NEW.rm_offset, NEW.rm_flags); in xfs_rmap_convert_shared()
1634 NEW.rm_offset = offset; in xfs_rmap_convert_shared()
1635 NEW.rm_startblock = bno; in xfs_rmap_convert_shared()
1636 NEW.rm_blockcount += len; in xfs_rmap_convert_shared()
1637 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1638 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1639 NEW.rm_offset, NEW.rm_flags); in xfs_rmap_convert_shared()
1649 NEW = PREV; in xfs_rmap_convert_shared()
1650 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1651 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1652 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1656 NEW.rm_blockcount -= len; in xfs_rmap_convert_shared()
1657 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1671 /* new right extent - oldext */ in xfs_rmap_convert_shared()
1672 NEW.rm_startblock = bno + len; in xfs_rmap_convert_shared()
1673 NEW.rm_owner = owner; in xfs_rmap_convert_shared()
1674 NEW.rm_offset = new_endoff; in xfs_rmap_convert_shared()
1675 NEW.rm_blockcount = PREV.rm_offset + PREV.rm_blockcount - in xfs_rmap_convert_shared()
1677 NEW.rm_flags = PREV.rm_flags; in xfs_rmap_convert_shared()
1678 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1679 NEW.rm_blockcount, NEW.rm_owner, NEW.rm_offset, in xfs_rmap_convert_shared()
1680 NEW.rm_flags); in xfs_rmap_convert_shared()
1683 /* new left extent - oldext */ in xfs_rmap_convert_shared()
1684 NEW = PREV; in xfs_rmap_convert_shared()
1685 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1686 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1687 NEW.rm_offset, NEW.rm_flags, &i); in xfs_rmap_convert_shared()
1691 NEW.rm_blockcount = offset - NEW.rm_offset; in xfs_rmap_convert_shared()
1692 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1695 /* new middle extent - newext */ in xfs_rmap_convert_shared()
1696 NEW.rm_startblock = bno; in xfs_rmap_convert_shared()
1697 NEW.rm_blockcount = len; in xfs_rmap_convert_shared()
1698 NEW.rm_owner = owner; in xfs_rmap_convert_shared()
1699 NEW.rm_offset = offset; in xfs_rmap_convert_shared()
1700 NEW.rm_flags = newext; in xfs_rmap_convert_shared()
1701 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1702 NEW.rm_blockcount, NEW.rm_owner, NEW.rm_offset, in xfs_rmap_convert_shared()
1703 NEW.rm_flags); in xfs_rmap_convert_shared()
1730 #undef NEW
1822 /* Add an rmap at the new offset. */ in xfs_rmap_unmap_shared()
1855 * record to the length of the new left-extent size, increment in xfs_rmap_unmap_shared()
1856 * the insertion position so we can insert a new record in xfs_rmap_unmap_shared()
1879 /* Add an rmap at the new offset */ in xfs_rmap_unmap_shared()
2034 * new record at current cursor position. in xfs_rmap_map_shared()