Lines Matching refs:bestfit
2494 } bestfit; in tdb_allocate() local
2509 bestfit.rec_ptr = 0; in tdb_allocate()
2510 bestfit.last_ptr = 0; in tdb_allocate()
2511 bestfit.rec_len = 0; in tdb_allocate()
2524 if (bestfit.rec_ptr == 0 || in tdb_allocate()
2525 rec->rec_len < bestfit.rec_len) { in tdb_allocate()
2526 bestfit.rec_len = rec->rec_len; in tdb_allocate()
2527 bestfit.rec_ptr = rec_ptr; in tdb_allocate()
2528 bestfit.last_ptr = last_ptr; in tdb_allocate()
2532 if (bestfit.rec_len < 2*length) { in tdb_allocate()
2543 if (bestfit.rec_ptr != 0) { in tdb_allocate()
2544 if (tdb_rec_free_read(tdb, bestfit.rec_ptr, rec) == -1) { in tdb_allocate()
2548 newrec_ptr = tdb_allocate_ofs(tdb, length, bestfit.rec_ptr, rec, bestfit.last_ptr); in tdb_allocate()