Lines Matching refs:newbno1
311 xfs_agblock_t newbno1; /* return block number */ in xfs_alloc_compute_diff() local
329 if ((newbno1 = roundup(freebno, alignment)) >= freeend) in xfs_alloc_compute_diff()
330 newbno1 = NULLAGBLOCK; in xfs_alloc_compute_diff()
332 newbno1 = roundup(wantbno, alignment); in xfs_alloc_compute_diff()
333 newbno2 = newbno1 - alignment; in xfs_alloc_compute_diff()
334 if (newbno1 >= freeend) in xfs_alloc_compute_diff()
335 newbno1 = NULLAGBLOCK; in xfs_alloc_compute_diff()
337 newlen1 = XFS_EXTLEN_MIN(wantlen, freeend - newbno1); in xfs_alloc_compute_diff()
342 if (newbno1 != NULLAGBLOCK && newbno2 != NULLAGBLOCK) { in xfs_alloc_compute_diff()
345 XFS_ABSDIFF(newbno1, wantbno) > in xfs_alloc_compute_diff()
347 newbno1 = newbno2; in xfs_alloc_compute_diff()
349 newbno1 = newbno2; in xfs_alloc_compute_diff()
351 newbno1 = wantbno; in xfs_alloc_compute_diff()
353 newbno1 = roundup(freeend - wantlen, alignment); in xfs_alloc_compute_diff()
354 if (newbno1 > freeend - wantlen && in xfs_alloc_compute_diff()
355 newbno1 - alignment >= freebno) in xfs_alloc_compute_diff()
356 newbno1 -= alignment; in xfs_alloc_compute_diff()
357 else if (newbno1 >= freeend) in xfs_alloc_compute_diff()
358 newbno1 = NULLAGBLOCK; in xfs_alloc_compute_diff()
360 newbno1 = freeend - wantlen; in xfs_alloc_compute_diff()
361 *newbnop = newbno1; in xfs_alloc_compute_diff()
362 return newbno1 == NULLAGBLOCK ? 0 : XFS_ABSDIFF(newbno1, wantbno); in xfs_alloc_compute_diff()