Lines Matching refs:freeend
314 xfs_agblock_t freeend; /* end of freespace extent */ in xfs_alloc_compute_diff() local
323 freeend = freebno + freelen; in xfs_alloc_compute_diff()
332 if (freebno >= wantbno || (userdata && freeend < wantend)) { in xfs_alloc_compute_diff()
333 if ((newbno1 = roundup(freebno, alignment)) >= freeend) in xfs_alloc_compute_diff()
335 } else if (freeend >= wantend && alignment > 1) { in xfs_alloc_compute_diff()
338 if (newbno1 >= freeend) in xfs_alloc_compute_diff()
341 newlen1 = XFS_EXTLEN_MIN(wantlen, freeend - newbno1); in xfs_alloc_compute_diff()
345 newlen2 = XFS_EXTLEN_MIN(wantlen, freeend - newbno2); in xfs_alloc_compute_diff()
354 } else if (freeend >= wantend) { in xfs_alloc_compute_diff()
357 newbno1 = roundup(freeend - wantlen, alignment); in xfs_alloc_compute_diff()
358 if (newbno1 > freeend - wantlen && in xfs_alloc_compute_diff()
361 else if (newbno1 >= freeend) in xfs_alloc_compute_diff()
364 newbno1 = freeend - wantlen; in xfs_alloc_compute_diff()