Lines Matching refs:lastx

1390 	xfs_extnum_t	lastx;		/* last extent index */  in xfs_bmap_search_multi_extents()  local
1402 ep = xfs_iext_bno_to_ext(ifp, bno, &lastx); in xfs_bmap_search_multi_extents()
1403 if (lastx > 0) { in xfs_bmap_search_multi_extents()
1404 xfs_bmbt_get_all(xfs_iext_get_ext(ifp, lastx - 1), prevp); in xfs_bmap_search_multi_extents()
1406 if (lastx < (ifp->if_bytes / (uint)sizeof(xfs_bmbt_rec_t))) { in xfs_bmap_search_multi_extents()
1410 if (lastx > 0) { in xfs_bmap_search_multi_extents()
1416 *lastxp = lastx; in xfs_bmap_search_multi_extents()
1536 xfs_extnum_t lastx; /* last extent used */ in xfs_bmap_last_before() local
1552 ep = xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got, in xfs_bmap_last_before()
4023 xfs_extnum_t lastx; in xfs_bmapi_read() local
4056 xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got, &prev); in xfs_bmapi_read()
4087 if (++lastx < ifp->if_bytes / sizeof(xfs_bmbt_rec_t)) in xfs_bmapi_read()
4088 xfs_bmbt_get_all(xfs_iext_get_ext(ifp, lastx), &got); in xfs_bmapi_read()
4103 xfs_extnum_t *lastx, in xfs_bmapi_reserve_delalloc() argument
4166 xfs_bmap_add_extent_hole_delay(ip, lastx, got); in xfs_bmapi_reserve_delalloc()
4172 xfs_bmbt_get_all(xfs_iext_get_ext(ifp, *lastx), got); in xfs_bmapi_reserve_delalloc()
4210 xfs_extnum_t lastx; /* last useful extent number */ in xfs_bmapi_delay() local
4239 xfs_bmap_search_extents(ip, bno, XFS_DATA_FORK, &eof, &lastx, &got, &prev); in xfs_bmapi_delay()
4246 &prev, &lastx, eof); in xfs_bmapi_delay()
4266 if (++lastx < ifp->if_bytes / sizeof(xfs_bmbt_rec_t)) in xfs_bmapi_delay()
4267 xfs_bmbt_get_all(xfs_iext_get_ext(ifp, lastx), &got); in xfs_bmapi_delay()
5066 xfs_extnum_t lastx; /* last extent index used */ in xfs_bunmapi() local
5110 ep = xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got, in xfs_bunmapi()
5118 ep = xfs_iext_get_ext(ifp, --lastx); in xfs_bunmapi()
5141 while (bno != (xfs_fileoff_t)-1 && bno >= start && lastx >= 0 && in xfs_bunmapi()
5148 if (--lastx < 0) in xfs_bunmapi()
5150 ep = xfs_iext_get_ext(ifp, lastx); in xfs_bunmapi()
5196 if (--lastx >= 0) in xfs_bunmapi()
5198 ifp, lastx), &got); in xfs_bunmapi()
5219 &lastx, &cur, &del, firstblock, flist, in xfs_bunmapi()
5247 if (--lastx >= 0) { in xfs_bunmapi()
5249 lastx); in xfs_bunmapi()
5261 ASSERT(lastx > 0); in xfs_bunmapi()
5263 lastx - 1), &prev); in xfs_bunmapi()
5275 lastx--; in xfs_bunmapi()
5277 ip, &lastx, &cur, &prev, in xfs_bunmapi()
5286 ip, &lastx, &cur, &del, in xfs_bunmapi()
5339 error = xfs_bmap_del_extent(ip, tp, &lastx, flist, cur, &del, in xfs_bunmapi()
5350 if (lastx >= 0) { in xfs_bunmapi()
5351 ep = xfs_iext_get_ext(ifp, lastx); in xfs_bunmapi()
5353 if (--lastx >= 0) in xfs_bunmapi()
5355 lastx); in xfs_bunmapi()
5362 *done = bno == (xfs_fileoff_t)-1 || bno < start || lastx < 0; in xfs_bunmapi()