Lines Matching refs:newbno1
150 xfs_agblock_t newbno1; /* return block number */ in xfs_alloc_compute_diff() local
160 if ((newbno1 = roundup(freebno, alignment)) >= freeend) in xfs_alloc_compute_diff()
161 newbno1 = NULLAGBLOCK; in xfs_alloc_compute_diff()
163 newbno1 = roundup(wantbno, alignment); in xfs_alloc_compute_diff()
164 newbno2 = newbno1 - alignment; in xfs_alloc_compute_diff()
165 if (newbno1 >= freeend) in xfs_alloc_compute_diff()
166 newbno1 = NULLAGBLOCK; in xfs_alloc_compute_diff()
168 newlen1 = XFS_EXTLEN_MIN(wantlen, freeend - newbno1); in xfs_alloc_compute_diff()
173 if (newbno1 != NULLAGBLOCK && newbno2 != NULLAGBLOCK) { in xfs_alloc_compute_diff()
176 XFS_ABSDIFF(newbno1, wantbno) > in xfs_alloc_compute_diff()
178 newbno1 = newbno2; in xfs_alloc_compute_diff()
180 newbno1 = newbno2; in xfs_alloc_compute_diff()
182 newbno1 = wantbno; in xfs_alloc_compute_diff()
184 newbno1 = roundup(freeend - wantlen, alignment); in xfs_alloc_compute_diff()
185 if (newbno1 > freeend - wantlen && in xfs_alloc_compute_diff()
186 newbno1 - alignment >= freebno) in xfs_alloc_compute_diff()
187 newbno1 -= alignment; in xfs_alloc_compute_diff()
188 else if (newbno1 >= freeend) in xfs_alloc_compute_diff()
189 newbno1 = NULLAGBLOCK; in xfs_alloc_compute_diff()
191 newbno1 = freeend - wantlen; in xfs_alloc_compute_diff()
192 *newbnop = newbno1; in xfs_alloc_compute_diff()
193 return newbno1 == NULLAGBLOCK ? 0 : XFS_ABSDIFF(newbno1, wantbno); in xfs_alloc_compute_diff()