Lines Matching refs:lastx

1391 	xfs_extnum_t	lastx;		/* last extent index */  in xfs_bmap_search_multi_extents()  local
1403 ep = xfs_iext_bno_to_ext(ifp, bno, &lastx); in xfs_bmap_search_multi_extents()
1404 if (lastx > 0) { in xfs_bmap_search_multi_extents()
1405 xfs_bmbt_get_all(xfs_iext_get_ext(ifp, lastx - 1), prevp); in xfs_bmap_search_multi_extents()
1407 if (lastx < (ifp->if_bytes / (uint)sizeof(xfs_bmbt_rec_t))) { in xfs_bmap_search_multi_extents()
1411 if (lastx > 0) { in xfs_bmap_search_multi_extents()
1417 *lastxp = lastx; in xfs_bmap_search_multi_extents()
1537 xfs_extnum_t lastx; /* last extent used */ in xfs_bmap_last_before() local
1553 ep = xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got, in xfs_bmap_last_before()
4018 xfs_extnum_t lastx; in xfs_bmapi_read() local
4051 xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got, &prev); in xfs_bmapi_read()
4082 if (++lastx < ifp->if_bytes / sizeof(xfs_bmbt_rec_t)) in xfs_bmapi_read()
4083 xfs_bmbt_get_all(xfs_iext_get_ext(ifp, lastx), &got); in xfs_bmapi_read()
4098 xfs_extnum_t *lastx, in xfs_bmapi_reserve_delalloc() argument
4161 xfs_bmap_add_extent_hole_delay(ip, lastx, got); in xfs_bmapi_reserve_delalloc()
4167 xfs_bmbt_get_all(xfs_iext_get_ext(ifp, *lastx), got); in xfs_bmapi_reserve_delalloc()
4205 xfs_extnum_t lastx; /* last useful extent number */ in xfs_bmapi_delay() local
4234 xfs_bmap_search_extents(ip, bno, XFS_DATA_FORK, &eof, &lastx, &got, &prev); in xfs_bmapi_delay()
4241 &prev, &lastx, eof); in xfs_bmapi_delay()
4261 if (++lastx < ifp->if_bytes / sizeof(xfs_bmbt_rec_t)) in xfs_bmapi_delay()
4262 xfs_bmbt_get_all(xfs_iext_get_ext(ifp, lastx), &got); in xfs_bmapi_delay()
5027 xfs_extnum_t lastx; /* last extent index used */ in xfs_bunmapi() local
5071 ep = xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got, in xfs_bunmapi()
5079 ep = xfs_iext_get_ext(ifp, --lastx); in xfs_bunmapi()
5102 while (bno != (xfs_fileoff_t)-1 && bno >= start && lastx >= 0 && in xfs_bunmapi()
5109 if (--lastx < 0) in xfs_bunmapi()
5111 ep = xfs_iext_get_ext(ifp, lastx); in xfs_bunmapi()
5157 if (--lastx >= 0) in xfs_bunmapi()
5159 ifp, lastx), &got); in xfs_bunmapi()
5180 &lastx, &cur, &del, firstblock, flist, in xfs_bunmapi()
5208 if (--lastx >= 0) { in xfs_bunmapi()
5210 lastx); in xfs_bunmapi()
5222 ASSERT(lastx > 0); in xfs_bunmapi()
5224 lastx - 1), &prev); in xfs_bunmapi()
5236 lastx--; in xfs_bunmapi()
5238 ip, &lastx, &cur, &prev, in xfs_bunmapi()
5247 ip, &lastx, &cur, &del, in xfs_bunmapi()
5300 error = xfs_bmap_del_extent(ip, tp, &lastx, flist, cur, &del, in xfs_bunmapi()
5311 if (lastx >= 0) { in xfs_bunmapi()
5312 ep = xfs_iext_get_ext(ifp, lastx); in xfs_bunmapi()
5314 if (--lastx >= 0) in xfs_bunmapi()
5316 lastx); in xfs_bunmapi()
5323 *done = bno == (xfs_fileoff_t)-1 || bno < start || lastx < 0; in xfs_bunmapi()