Lines Matching refs:credit
222 static enum bp_state reserve_additional_memory(long credit) in reserve_additional_memory() argument
226 unsigned long balloon_hotplug = credit; in reserve_additional_memory()
262 balloon_hotplug -= credit; in reserve_additional_memory()
264 balloon_stats.hotplug_pages += credit; in reserve_additional_memory()
319 static enum bp_state reserve_additional_memory(long credit) in reserve_additional_memory() argument
483 long credit; in balloon_process() local
488 credit = current_credit(); in balloon_process()
490 if (credit > 0) { in balloon_process()
492 state = increase_reservation(credit); in balloon_process()
494 state = reserve_additional_memory(credit); in balloon_process()
497 if (credit < 0) in balloon_process()
498 state = decrease_reservation(-credit, GFP_BALLOON); in balloon_process()
506 } while (credit && state == BP_DONE); in balloon_process()