Searched refs:best_fit (Results 1 – 1 of 1) sorted by relevance
127 int best_fit = -1; in ba_allocate() local141 best_fit = curr; in ba_allocate()145 (best_fit < 0 || in ba_allocate()146 BA_ORDER(curr) < BA_ORDER(best_fit))) in ba_allocate()147 best_fit = curr; in ba_allocate()155 if (best_fit < 0) in ba_allocate()162 while (BA_ORDER(best_fit) > (unsigned char)order) { in ba_allocate()164 BA_ORDER(best_fit) -= 1; in ba_allocate()165 buddy = BA_BUDDY_INDEX(best_fit); in ba_allocate()166 BA_ORDER(buddy) = BA_ORDER(best_fit); in ba_allocate()[all …]