Lines Matching defs:newbno1
374 xfs_agblock_t newbno1; /* return block number */
376 xfs_extlen_t newlen1=0; /* length with newbno1 */
392 if ((newbno1 = roundup(freebno, alignment)) >= freeend)
393 newbno1 = NULLAGBLOCK;
395 newbno1 = roundup(wantbno, alignment);
396 newbno2 = newbno1 - alignment;
397 if (newbno1 >= freeend)
398 newbno1 = NULLAGBLOCK;
400 newlen1 = XFS_EXTLEN_MIN(wantlen, freeend - newbno1);
405 if (newbno1 != NULLAGBLOCK && newbno2 != NULLAGBLOCK) {
408 XFS_ABSDIFF(newbno1, wantbno) >
410 newbno1 = newbno2;
412 newbno1 = newbno2;
414 newbno1 = wantbno;
416 newbno1 = roundup(freeend - wantlen, alignment);
417 if (newbno1 > freeend - wantlen &&
418 newbno1 - alignment >= freebno)
419 newbno1 -= alignment;
420 else if (newbno1 >= freeend)
421 newbno1 = NULLAGBLOCK;
423 newbno1 = freeend - wantlen;
424 *newbnop = newbno1;
425 return newbno1 == NULLAGBLOCK ? 0 : XFS_ABSDIFF(newbno1, wantbno);