Lines Matching refs:PREV

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