Lines Matching refs:freeend
377 xfs_agblock_t freeend; /* end of freespace extent */ in xfs_alloc_compute_diff() local
386 freeend = freebno + freelen; in xfs_alloc_compute_diff()
395 if (freebno >= wantbno || (userdata && freeend < wantend)) { in xfs_alloc_compute_diff()
396 if ((newbno1 = roundup(freebno, alignment)) >= freeend) in xfs_alloc_compute_diff()
398 } else if (freeend >= wantend && alignment > 1) { in xfs_alloc_compute_diff()
401 if (newbno1 >= freeend) in xfs_alloc_compute_diff()
404 newlen1 = XFS_EXTLEN_MIN(wantlen, freeend - newbno1); in xfs_alloc_compute_diff()
408 newlen2 = XFS_EXTLEN_MIN(wantlen, freeend - newbno2); in xfs_alloc_compute_diff()
417 } else if (freeend >= wantend) { in xfs_alloc_compute_diff()
420 newbno1 = roundup(freeend - wantlen, alignment); in xfs_alloc_compute_diff()
421 if (newbno1 > freeend - wantlen && in xfs_alloc_compute_diff()
424 else if (newbno1 >= freeend) in xfs_alloc_compute_diff()
427 newbno1 = freeend - wantlen; in xfs_alloc_compute_diff()