Lines Matching defs:end

444 		 * If we've reached the end, stop.
709 * Do all this logging at the end so that
1223 * lowest-address hole if the fork has holes, else the first block past the end
1333 * in blocks being allocated at the end of the file. When we allocate new data
1334 * blocks at the end of the file which do not start at the previous data block,
1419 xfs_fileoff_t new_endoff; /* end offset of new entry */
1970 xfs_fileoff_t new_endoff; /* end offset of new entry */
2520 * If it doesn't exist, we're converting the hole at end-of-file.
2878 int eof, /* is extent at end-of-file? */
2923 /* Same adjustment for the end of the requested area. */
2977 * the length so we hit the end.
3009 * Try to fix it by moving the end in.
3104 * Calculate gap to end of previous block.
3111 * end and the gap size.
3115 * number, then just use the end of the previous block.
3460 * stripe unit and the allocation offset is at the end of file.
3736 xfs_fileoff_t end = bno + len;
3739 irec->br_startoff >= end) {
3755 if (end < irec->br_startoff + irec->br_blockcount) {
3756 distance = irec->br_startoff + irec->br_blockcount - end;
3771 xfs_fileoff_t end,
3786 ASSERT(*bno < end);
3800 mval->br_blockcount = XFS_FILBLKS_MIN(end - *bno,
3816 xfs_fileoff_t end,
3823 ((mval->br_startoff + mval->br_blockcount) <= end));
3828 *len = end - *bno;
3878 xfs_fileoff_t end;
3906 end = bno + len;
3909 while (bno < end && n < *nmap) {
3910 /* Reading past eof, act as though there's a hole up to end. */
3912 got.br_startoff = end;
3928 xfs_bmapi_trim_map(mval, &got, &bno, len, obno, end, n, flags);
3929 xfs_bmapi_update_map(&mval, &bno, &len, obno, end, &n, flags);
3932 if (bno >= end || n >= *nmap)
4034 * preallocation can occur at the start or end of the extent, even when
4332 xfs_fileoff_t end; /* end of mapped file region */
4333 bool eof = false; /* after the end of extents */
4393 end = bno + len;
4395 while (bno < end && n < *nmap) {
4455 end, n, flags);
4465 xfs_bmapi_update_map(&mval, &bno, &len, obno, end, &n, flags);
4472 if (bno >= end || n >= *nmap || bma.nallocs >= *nmap)
5015 int do_fx; /* free extent at end of routine */
5281 xfs_fileoff_t end;
5309 end = start + len;
5311 if (!xfs_iext_lookup_extent_before(ip, ifp, &end, &icur, &got)) {
5315 end--;
5336 while (end != (xfs_fileoff_t)-1 && end >= start &&
5339 * Is the found extent after a hole in which end lives?
5342 if (got.br_startoff > end &&
5351 end = XFS_FILEOFF_MIN(end,
5353 if (end < start)
5368 if (del.br_startoff + del.br_blockcount > end + 1)
5369 del.br_blockcount = end + 1 - del.br_startoff;
5378 * Realtime extent not lined up at the end.
5389 ASSERT(end >= mod);
5390 end -= mod > del.br_blockcount ?
5392 if (end < got.br_startoff &&
5407 * chop it back to the start of the one we end at.
5427 * Realtime extent is lined up at the end but not
5442 ASSERT(end >= del.br_blockcount);
5443 end -= del.br_blockcount;
5444 if (got.br_startoff > end &&
5506 end = del.br_startoff - 1;
5511 if (end != (xfs_fileoff_t)-1 && end >= start) {
5513 (got.br_startoff > end &&
5521 if (done || end == (xfs_fileoff_t)-1 || end < start)
5524 *rlen = end - start + 1;