Lines Matching defs:PREV

1439 #define	PREV		r[2]
1444 xfs_iext_get_extent(ifp, &bma->icur, &PREV);
1446 ASSERT(isnullstartblock(PREV.br_startblock));
1447 ASSERT(PREV.br_startoff <= new->br_startoff);
1448 ASSERT(PREV.br_startoff + PREV.br_blockcount >= new_endoff);
1450 da_old = startblockval(PREV.br_startblock);
1457 if (PREV.br_startoff == new->br_startoff)
1459 if (PREV.br_startoff + PREV.br_blockcount == new_endoff)
1515 LEFT.br_blockcount += PREV.br_blockcount + RIGHT.br_blockcount;
1560 LEFT.br_blockcount += PREV.br_blockcount;
1590 PREV.br_startblock = new->br_startblock;
1591 PREV.br_blockcount += RIGHT.br_blockcount;
1592 PREV.br_state = new->br_state;
1597 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV);
1610 error = xfs_bmbt_update(bma->cur, &PREV);
1622 PREV.br_startblock = new->br_startblock;
1623 PREV.br_state = new->br_state;
1624 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV);
1654 temp = PREV.br_blockcount - new->br_blockcount;
1656 startblockval(PREV.br_startblock));
1660 PREV.br_blockcount = temp;
1661 PREV.br_startoff += new->br_blockcount;
1662 PREV.br_startblock = nullstartblock(da_new);
1664 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV);
1721 temp = PREV.br_blockcount - new->br_blockcount;
1723 startblockval(PREV.br_startblock) -
1726 PREV.br_startoff = new_endoff;
1727 PREV.br_blockcount = temp;
1728 PREV.br_startblock = nullstartblock(da_new);
1730 xfs_iext_insert(bma->ip, &bma->icur, &PREV, state);
1760 temp = PREV.br_blockcount - new->br_blockcount;
1762 startblockval(PREV.br_startblock));
1764 PREV.br_blockcount = temp;
1765 PREV.br_startblock = nullstartblock(da_new);
1767 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV);
1808 temp = PREV.br_blockcount - new->br_blockcount;
1810 startblockval(PREV.br_startblock) -
1813 PREV.br_startblock = nullstartblock(da_new);
1814 PREV.br_blockcount = temp;
1815 xfs_iext_insert(bma->ip, &bma->icur, &PREV, state);
1828 * PREV @ idx
1837 * PREV @ idx LEFT RIGHT
1840 old = PREV;
1846 RIGHT.br_state = PREV.br_state;
1849 PREV.br_startoff + PREV.br_blockcount - new_endoff;
1854 /* truncate PREV */
1855 PREV.br_blockcount = new->br_startoff - PREV.br_startoff;
1856 PREV.br_startblock =
1858 PREV.br_blockcount));
1859 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV);
1894 da_new = startblockval(PREV.br_startblock) +
1950 #undef PREV
1989 #define PREV r[2]
1995 xfs_iext_get_extent(ifp, icur, &PREV);
1996 ASSERT(new->br_state != PREV.br_state);
1998 ASSERT(PREV.br_startoff <= new->br_startoff);
1999 ASSERT(PREV.br_startoff + PREV.br_blockcount >= new_endoff);
2005 if (PREV.br_startoff == new->br_startoff)
2007 if (PREV.br_startoff + PREV.br_blockcount == new_endoff)
2062 LEFT.br_blockcount += PREV.br_blockcount + RIGHT.br_blockcount;
2115 LEFT.br_blockcount += PREV.br_blockcount;
2125 error = xfs_bmbt_lookup_eq(cur, &PREV, &i);
2155 PREV.br_blockcount += RIGHT.br_blockcount;
2156 PREV.br_state = new->br_state;
2161 xfs_iext_update_extent(ip, state, icur, &PREV);
2187 error = xfs_bmbt_update(cur, &PREV);
2199 PREV.br_state = new->br_state;
2200 xfs_iext_update_extent(ip, state, icur, &PREV);
2213 error = xfs_bmbt_update(cur, &PREV);
2226 old = PREV;
2227 PREV.br_startoff += new->br_blockcount;
2228 PREV.br_startblock += new->br_blockcount;
2229 PREV.br_blockcount -= new->br_blockcount;
2231 xfs_iext_update_extent(ip, state, icur, &PREV);
2246 error = xfs_bmbt_update(cur, &PREV);
2263 old = PREV;
2264 PREV.br_startoff += new->br_blockcount;
2265 PREV.br_startblock += new->br_blockcount;
2266 PREV.br_blockcount -= new->br_blockcount;
2268 xfs_iext_update_extent(ip, state, icur, &PREV);
2283 error = xfs_bmbt_update(cur, &PREV);
2301 old = PREV;
2302 PREV.br_blockcount -= new->br_blockcount;
2308 xfs_iext_update_extent(ip, state, icur, &PREV);
2323 error = xfs_bmbt_update(cur, &PREV);
2340 old = PREV;
2341 PREV.br_blockcount -= new->br_blockcount;
2343 xfs_iext_update_extent(ip, state, icur, &PREV);
2359 error = xfs_bmbt_update(cur, &PREV);
2384 old = PREV;
2385 PREV.br_blockcount = new->br_startoff - PREV.br_startoff;
2392 r[1].br_state = PREV.br_state;
2394 xfs_iext_update_extent(ip, state, icur, &PREV);
2416 cur->bc_rec.b = PREV;
2485 #undef PREV
6118 struct xfs_bmbt_irec *PREV)
6120 if (!xfs_bmap_is_update_needed(PREV))
6123 __xfs_bmap_add(tp, XFS_BMAP_MAP, ip, XFS_DATA_FORK, PREV);
6131 struct xfs_bmbt_irec *PREV)
6133 if (!xfs_bmap_is_update_needed(PREV))
6136 __xfs_bmap_add(tp, XFS_BMAP_UNMAP, ip, XFS_DATA_FORK, PREV);