Lines Matching refs:newbno1
377 xfs_agblock_t newbno1; /* return block number */
379 xfs_extlen_t newlen1=0; /* length with newbno1 */
395 if ((newbno1 = roundup(freebno, alignment)) >= freeend)
396 newbno1 = NULLAGBLOCK;
398 newbno1 = roundup(wantbno, alignment);
399 newbno2 = newbno1 - alignment;
400 if (newbno1 >= freeend)
401 newbno1 = NULLAGBLOCK;
403 newlen1 = XFS_EXTLEN_MIN(wantlen, freeend - newbno1);
408 if (newbno1 != NULLAGBLOCK && newbno2 != NULLAGBLOCK) {
411 abs_diff(newbno1, wantbno) >
413 newbno1 = newbno2;
415 newbno1 = newbno2;
417 newbno1 = wantbno;
419 newbno1 = roundup(freeend - wantlen, alignment);
420 if (newbno1 > freeend - wantlen &&
421 newbno1 - alignment >= freebno)
422 newbno1 -= alignment;
423 else if (newbno1 >= freeend)
424 newbno1 = NULLAGBLOCK;
426 newbno1 = freeend - wantlen;
427 *newbnop = newbno1;
428 return newbno1 == NULLAGBLOCK ? 0 : abs_diff(newbno1, wantbno);