Lines Matching refs:credit
289 long credit; in reserve_additional_memory() local
294 credit = balloon_stats.target_pages + balloon_stats.target_unpopulated in reserve_additional_memory()
301 if (credit <= 0) in reserve_additional_memory()
304 balloon_hotplug = round_up(credit, PAGES_PER_SECTION); in reserve_additional_memory()
519 long credit; in balloon_process() local
525 credit = current_credit(); in balloon_process()
527 if (credit > 0) { in balloon_process()
529 state = increase_reservation(credit); in balloon_process()
534 if (credit < 0) { in balloon_process()
537 n_pages = min(-credit, si_mem_available()); in balloon_process()
539 if (state == BP_DONE && n_pages != -credit && in balloon_process()
550 } while (credit && state == BP_DONE); in balloon_process()