Lines Matching refs:newbno1
329 xfs_agblock_t newbno1; /* return block number */ in xfs_alloc_compute_diff() local
347 if ((newbno1 = roundup(freebno, alignment)) >= freeend) in xfs_alloc_compute_diff()
348 newbno1 = NULLAGBLOCK; in xfs_alloc_compute_diff()
350 newbno1 = roundup(wantbno, alignment); in xfs_alloc_compute_diff()
351 newbno2 = newbno1 - alignment; in xfs_alloc_compute_diff()
352 if (newbno1 >= freeend) in xfs_alloc_compute_diff()
353 newbno1 = NULLAGBLOCK; in xfs_alloc_compute_diff()
355 newlen1 = XFS_EXTLEN_MIN(wantlen, freeend - newbno1); in xfs_alloc_compute_diff()
360 if (newbno1 != NULLAGBLOCK && newbno2 != NULLAGBLOCK) { in xfs_alloc_compute_diff()
363 XFS_ABSDIFF(newbno1, wantbno) > in xfs_alloc_compute_diff()
365 newbno1 = newbno2; in xfs_alloc_compute_diff()
367 newbno1 = newbno2; in xfs_alloc_compute_diff()
369 newbno1 = wantbno; in xfs_alloc_compute_diff()
371 newbno1 = roundup(freeend - wantlen, alignment); in xfs_alloc_compute_diff()
372 if (newbno1 > freeend - wantlen && in xfs_alloc_compute_diff()
373 newbno1 - alignment >= freebno) in xfs_alloc_compute_diff()
374 newbno1 -= alignment; in xfs_alloc_compute_diff()
375 else if (newbno1 >= freeend) in xfs_alloc_compute_diff()
376 newbno1 = NULLAGBLOCK; in xfs_alloc_compute_diff()
378 newbno1 = freeend - wantlen; in xfs_alloc_compute_diff()
379 *newbnop = newbno1; in xfs_alloc_compute_diff()
380 return newbno1 == NULLAGBLOCK ? 0 : XFS_ABSDIFF(newbno1, wantbno); in xfs_alloc_compute_diff()