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