Lines Matching defs:PREV

1519 #define	PREV		r[2]
1524 xfs_iext_get_extent(ifp, &bma->icur, &PREV);
1526 ASSERT(isnullstartblock(PREV.br_startblock));
1527 ASSERT(PREV.br_startoff <= new->br_startoff);
1528 ASSERT(PREV.br_startoff + PREV.br_blockcount >= new_endoff);
1530 da_old = startblockval(PREV.br_startblock);
1537 if (PREV.br_startoff == new->br_startoff)
1539 if (PREV.br_startoff + PREV.br_blockcount == new_endoff)
1595 LEFT.br_blockcount += PREV.br_blockcount + RIGHT.br_blockcount;
1640 LEFT.br_blockcount += PREV.br_blockcount;
1670 PREV.br_startblock = new->br_startblock;
1671 PREV.br_blockcount += RIGHT.br_blockcount;
1672 PREV.br_state = new->br_state;
1677 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV);
1690 error = xfs_bmbt_update(bma->cur, &PREV);
1702 PREV.br_startblock = new->br_startblock;
1703 PREV.br_state = new->br_state;
1704 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV);
1734 temp = PREV.br_blockcount - new->br_blockcount;
1736 startblockval(PREV.br_startblock));
1740 PREV.br_blockcount = temp;
1741 PREV.br_startoff += new->br_blockcount;
1742 PREV.br_startblock = nullstartblock(da_new);
1744 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV);
1801 temp = PREV.br_blockcount - new->br_blockcount;
1803 startblockval(PREV.br_startblock) -
1806 PREV.br_startoff = new_endoff;
1807 PREV.br_blockcount = temp;
1808 PREV.br_startblock = nullstartblock(da_new);
1810 xfs_iext_insert(bma->ip, &bma->icur, &PREV, state);
1840 temp = PREV.br_blockcount - new->br_blockcount;
1842 startblockval(PREV.br_startblock));
1844 PREV.br_blockcount = temp;
1845 PREV.br_startblock = nullstartblock(da_new);
1847 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV);
1888 temp = PREV.br_blockcount - new->br_blockcount;
1890 startblockval(PREV.br_startblock) -
1893 PREV.br_startblock = nullstartblock(da_new);
1894 PREV.br_blockcount = temp;
1895 xfs_iext_insert(bma->ip, &bma->icur, &PREV, state);
1908 * PREV @ idx
1917 * PREV @ idx LEFT RIGHT
1920 old = PREV;
1926 RIGHT.br_state = PREV.br_state;
1929 PREV.br_startoff + PREV.br_blockcount - new_endoff;
1934 /* truncate PREV */
1935 PREV.br_blockcount = new->br_startoff - PREV.br_startoff;
1936 PREV.br_startblock =
1938 PREV.br_blockcount));
1939 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV);
1974 da_new = startblockval(PREV.br_startblock) +
2030 #undef PREV
2069 #define PREV r[2]
2075 xfs_iext_get_extent(ifp, icur, &PREV);
2076 ASSERT(new->br_state != PREV.br_state);
2078 ASSERT(PREV.br_startoff <= new->br_startoff);
2079 ASSERT(PREV.br_startoff + PREV.br_blockcount >= new_endoff);
2085 if (PREV.br_startoff == new->br_startoff)
2087 if (PREV.br_startoff + PREV.br_blockcount == new_endoff)
2142 LEFT.br_blockcount += PREV.br_blockcount + RIGHT.br_blockcount;
2195 LEFT.br_blockcount += PREV.br_blockcount;
2205 error = xfs_bmbt_lookup_eq(cur, &PREV, &i);
2235 PREV.br_blockcount += RIGHT.br_blockcount;
2236 PREV.br_state = new->br_state;
2241 xfs_iext_update_extent(ip, state, icur, &PREV);
2267 error = xfs_bmbt_update(cur, &PREV);
2279 PREV.br_state = new->br_state;
2280 xfs_iext_update_extent(ip, state, icur, &PREV);
2293 error = xfs_bmbt_update(cur, &PREV);
2306 old = PREV;
2307 PREV.br_startoff += new->br_blockcount;
2308 PREV.br_startblock += new->br_blockcount;
2309 PREV.br_blockcount -= new->br_blockcount;
2311 xfs_iext_update_extent(ip, state, icur, &PREV);
2326 error = xfs_bmbt_update(cur, &PREV);
2343 old = PREV;
2344 PREV.br_startoff += new->br_blockcount;
2345 PREV.br_startblock += new->br_blockcount;
2346 PREV.br_blockcount -= new->br_blockcount;
2348 xfs_iext_update_extent(ip, state, icur, &PREV);
2363 error = xfs_bmbt_update(cur, &PREV);
2381 old = PREV;
2382 PREV.br_blockcount -= new->br_blockcount;
2388 xfs_iext_update_extent(ip, state, icur, &PREV);
2403 error = xfs_bmbt_update(cur, &PREV);
2420 old = PREV;
2421 PREV.br_blockcount -= new->br_blockcount;
2423 xfs_iext_update_extent(ip, state, icur, &PREV);
2439 error = xfs_bmbt_update(cur, &PREV);
2464 old = PREV;
2465 PREV.br_blockcount = new->br_startoff - PREV.br_startoff;
2472 r[1].br_state = PREV.br_state;
2474 xfs_iext_update_extent(ip, state, icur, &PREV);
2496 cur->bc_rec.b = PREV;
2565 #undef PREV
6151 struct xfs_bmbt_irec *PREV)
6153 if (!xfs_bmap_is_update_needed(PREV))
6156 __xfs_bmap_add(tp, XFS_BMAP_MAP, ip, XFS_DATA_FORK, PREV);
6164 struct xfs_bmbt_irec *PREV)
6166 if (!xfs_bmap_is_update_needed(PREV))
6169 __xfs_bmap_add(tp, XFS_BMAP_UNMAP, ip, XFS_DATA_FORK, PREV);