Lines Matching refs:newbno1
191 xfs_agblock_t newbno1; /* return block number */
193 xfs_extlen_t newlen1=0; /* length with newbno1 */
201 if ((newbno1 = roundup(freebno, alignment)) >= freeend)
202 newbno1 = NULLAGBLOCK;
204 newbno1 = roundup(wantbno, alignment);
205 newbno2 = newbno1 - alignment;
206 if (newbno1 >= freeend)
207 newbno1 = NULLAGBLOCK;
209 newlen1 = XFS_EXTLEN_MIN(wantlen, freeend - newbno1);
214 if (newbno1 != NULLAGBLOCK && newbno2 != NULLAGBLOCK) {
217 XFS_ABSDIFF(newbno1, wantbno) >
219 newbno1 = newbno2;
221 newbno1 = newbno2;
223 newbno1 = wantbno;
225 newbno1 = roundup(freeend - wantlen, alignment);
226 if (newbno1 > freeend - wantlen &&
227 newbno1 - alignment >= freebno)
228 newbno1 -= alignment;
229 else if (newbno1 >= freeend)
230 newbno1 = NULLAGBLOCK;
232 newbno1 = freeend - wantlen;
233 *newbnop = newbno1;
234 return newbno1 == NULLAGBLOCK ? 0 : XFS_ABSDIFF(newbno1, wantbno);