Lines Matching refs:largest
560 static struct diskchunk largest; in allocate_diskchunk() local
563 largest.start = largest.stop = 0; in allocate_diskchunk()
567 if (CHUNKSZ(chunk) > CHUNKSZ(&largest)) in allocate_diskchunk()
568 largest = *chunk; in allocate_diskchunk()
570 maxstop = largest.start + DL_BLKTOSEC(lp, sa->maxsz); in allocate_diskchunk()
571 if (maxstop > largest.stop) in allocate_diskchunk()
572 maxstop = largest.stop; in allocate_diskchunk()
575 largest.start = ROUNDUP(largest.start, lp->d_secpercyl); in allocate_diskchunk()
577 if (maxstop > largest.stop) in allocate_diskchunk()
579 if (largest.start >= maxstop) in allocate_diskchunk()
580 largest.start = largest.stop = maxstop = 0; in allocate_diskchunk()
583 if (maxstop < largest.stop) in allocate_diskchunk()
584 largest.stop = maxstop; in allocate_diskchunk()
585 if (CHUNKSZ(&largest) < DL_BLKTOSEC(lp, sa->minsz)) in allocate_diskchunk()
588 return &largest; in allocate_diskchunk()