Lines Matching full:credit
273 long credit; in reserve_additional_memory() local
278 credit = balloon_stats.target_pages + balloon_stats.target_unpopulated in reserve_additional_memory()
285 if (credit <= 0) in reserve_additional_memory()
288 balloon_hotplug = round_up(credit, PAGES_PER_SECTION); in reserve_additional_memory()
502 long credit; in balloon_process() local
508 credit = current_credit(); in balloon_process()
510 if (credit > 0) { in balloon_process()
512 state = increase_reservation(credit); in balloon_process()
517 if (credit < 0) { in balloon_process()
520 n_pages = min(-credit, si_mem_available()); in balloon_process()
522 if (state == BP_DONE && n_pages != -credit && in balloon_process()
533 } while (credit && state == BP_DONE); in balloon_process()