Lines Matching refs:bestfit
2489 } bestfit; in tdb_allocate() local
2504 bestfit.rec_ptr = 0; in tdb_allocate()
2505 bestfit.last_ptr = 0; in tdb_allocate()
2506 bestfit.rec_len = 0; in tdb_allocate()
2519 if (bestfit.rec_ptr == 0 || in tdb_allocate()
2520 rec->rec_len < bestfit.rec_len) { in tdb_allocate()
2521 bestfit.rec_len = rec->rec_len; in tdb_allocate()
2522 bestfit.rec_ptr = rec_ptr; in tdb_allocate()
2523 bestfit.last_ptr = last_ptr; in tdb_allocate()
2527 if (bestfit.rec_len < 2*length) { in tdb_allocate()
2538 if (bestfit.rec_ptr != 0) { in tdb_allocate()
2539 if (tdb_rec_free_read(tdb, bestfit.rec_ptr, rec) == -1) { in tdb_allocate()
2543 newrec_ptr = tdb_allocate_ofs(tdb, length, bestfit.rec_ptr, rec, bestfit.last_ptr); in tdb_allocate()