Lines Matching refs:lastx

3417 	xfs_extnum_t	lastx,		/* last extent index used */  in xfs_bmap_do_search_extents()  argument
3444 if (lastx != NULLEXTNUM && lastx < nextents) in xfs_bmap_do_search_extents()
3445 ep = base + lastx; in xfs_bmap_do_search_extents()
3453 else if (ep && lastx < nextents - 1 && in xfs_bmap_do_search_extents()
3457 lastx++; in xfs_bmap_do_search_extents()
3465 lastx = 0; in xfs_bmap_do_search_extents()
3474 lastx = (low + high) >> 1; in xfs_bmap_do_search_extents()
3475 ep = base + lastx; in xfs_bmap_do_search_extents()
3479 high = lastx - 1; in xfs_bmap_do_search_extents()
3481 low = lastx + 1; in xfs_bmap_do_search_extents()
3486 *lastxp = lastx; in xfs_bmap_do_search_extents()
3492 lastx++; in xfs_bmap_do_search_extents()
3493 if (lastx == nextents) { in xfs_bmap_do_search_extents()
3516 *lastxp = lastx; in xfs_bmap_do_search_extents()
3540 xfs_extnum_t lastx; /* last extent index used */ in xfs_bmap_search_extents() local
3547 lastx = ifp->if_lastex; in xfs_bmap_search_extents()
3551 ep = xfs_bmap_do_search_extents(base, lastx, nextents, bno, eofp, in xfs_bmap_search_extents()
4179 xfs_extnum_t lastx; /* last extent used */ in xfs_bmap_last_before() local
4195 ep = xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got, in xfs_bmap_last_before()
4547 xfs_extnum_t lastx; /* last useful extent number */ in xfs_bmapi() local
4646 ep = xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got, in xfs_bmapi()
4676 if (lastx != NULLEXTNUM && lastx) { in xfs_bmapi()
4677 ep = &ifp->if_u1.if_extents[lastx - 1]; in xfs_bmapi()
4856 error = xfs_bmap_add_extent(ip, lastx, &cur, &got, in xfs_bmapi()
4862 lastx = ifp->if_lastex; in xfs_bmapi()
4863 ep = &ifp->if_u1.if_extents[lastx]; in xfs_bmapi()
4952 error = xfs_bmap_add_extent(ip, lastx, &cur, mval, in xfs_bmapi()
4958 lastx = ifp->if_lastex; in xfs_bmapi()
4959 ep = &ifp->if_u1.if_extents[lastx]; in xfs_bmapi()
5016 lastx++; in xfs_bmapi()
5017 if (lastx >= nextents) { in xfs_bmapi()
5023 ifp->if_lastex = lastx; in xfs_bmapi()
5103 xfs_extnum_t lastx; /* last useful extent number */ in xfs_bmapi_single() local
5120 (void)xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got, in xfs_bmapi_single()
5133 ifp->if_lastex = lastx; in xfs_bmapi_single()
5165 xfs_extnum_t lastx; /* last extent index used */ in xfs_bunmapi() local
5210 ep = xfs_bmap_search_extents(ip, bno, whichfork, &eof, &lastx, &got, in xfs_bunmapi()
5217 ep = &ifp->if_u1.if_extents[--lastx]; in xfs_bunmapi()
5232 while (bno != (xfs_fileoff_t)-1 && bno >= start && lastx >= 0 && in xfs_bunmapi()
5239 if (--lastx < 0) in xfs_bunmapi()
5287 if (--lastx >= 0) in xfs_bunmapi()
5308 error = xfs_bmap_add_extent(ip, lastx, &cur, &del, in xfs_bunmapi()
5336 if (--lastx >= 0) in xfs_bunmapi()
5347 ASSERT(lastx > 0); in xfs_bunmapi()
5360 error = xfs_bmap_add_extent(ip, lastx - 1, &cur, in xfs_bunmapi()
5369 error = xfs_bmap_add_extent(ip, lastx, &cur, in xfs_bunmapi()
5412 error = xfs_bmap_del_extent(ip, tp, lastx, flist, cur, &del, in xfs_bunmapi()
5419 lastx = ifp->if_lastex; in xfs_bunmapi()
5424 ep = &ifp->if_u1.if_extents[lastx]; in xfs_bunmapi()
5426 if (lastx >= XFS_IFORK_NEXTENTS(ip, whichfork) || in xfs_bunmapi()
5428 lastx--; in xfs_bunmapi()
5431 if (lastx >= 0) in xfs_bunmapi()
5436 ifp->if_lastex = lastx; in xfs_bunmapi()
5437 *done = bno == (xfs_fileoff_t)-1 || bno < start || lastx < 0; in xfs_bunmapi()