Lines Matching defs:lastx

3662 	xfs_extnum_t	lastx;		/* last extent index */
3678 ep = xfs_iext_bno_to_ext(ifp, bno, &lastx);
3679 if (lastx > 0) {
3680 xfs_bmbt_get_all(xfs_iext_get_ext(ifp, lastx - 1), prevp);
3682 if (lastx < (ifp->if_bytes / (uint)sizeof(xfs_bmbt_rec_t))) {
3686 if (lastx > 0) {
3692 *lastxp = lastx;
4370 xfs_extnum_t lastx; /* last extent used */
4386 ep = xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got,
4731 xfs_extnum_t lastx; /* last useful extent number */
4822 ep = xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got,
4856 if (lastx != NULLEXTNUM && lastx) {
4857 ep = xfs_iext_get_ext(ifp, lastx - 1);
5068 error = xfs_bmap_add_extent(ip, lastx, &cur, &got,
5074 lastx = ifp->if_lastex;
5075 ep = xfs_iext_get_ext(ifp, lastx);
5165 error = xfs_bmap_add_extent(ip, lastx, &cur, mval,
5171 lastx = ifp->if_lastex;
5172 ep = xfs_iext_get_ext(ifp, lastx);
5230 ep = xfs_iext_get_ext(ifp, ++lastx);
5231 if (lastx >= nextents) {
5237 ifp->if_lastex = lastx;
5324 xfs_extnum_t lastx; /* last useful extent number */
5341 (void)xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got,
5354 ifp->if_lastex = lastx;
5388 xfs_extnum_t lastx; /* last extent index used */
5432 ep = xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got,
5443 ep = xfs_iext_get_ext(ifp, --lastx);
5458 while (bno != (xfs_fileoff_t)-1 && bno >= start && lastx >= 0 &&
5465 if (--lastx < 0)
5467 ep = xfs_iext_get_ext(ifp, lastx);
5513 if (--lastx >= 0)
5515 ifp, lastx), &got);
5535 error = xfs_bmap_add_extent(ip, lastx, &cur, &del,
5564 if (--lastx >= 0)
5575 ASSERT(lastx > 0);
5577 lastx - 1), &prev);
5589 error = xfs_bmap_add_extent(ip, lastx - 1, &cur,
5598 error = xfs_bmap_add_extent(ip, lastx, &cur,
5652 error = xfs_bmap_del_extent(ip, tp, lastx, flist, cur, &del,
5659 lastx = ifp->if_lastex;
5664 ep = xfs_iext_get_ext(ifp, lastx);
5666 if (lastx >= XFS_IFORK_NEXTENTS(ip, whichfork) ||
5668 if (--lastx >= 0)
5669 ep = xfs_iext_get_ext(ifp, lastx);
5671 if (lastx >= 0)
5676 ifp->if_lastex = lastx;
5677 *done = bno == (xfs_fileoff_t)-1 || bno < start || lastx < 0;