Lines Matching refs:credit
233 static enum bp_state reserve_additional_memory(long credit) in reserve_additional_memory() argument
237 unsigned long balloon_hotplug = credit; in reserve_additional_memory()
250 balloon_hotplug -= credit; in reserve_additional_memory()
252 balloon_stats.hotplug_pages += credit; in reserve_additional_memory()
307 static enum bp_state reserve_additional_memory(long credit) in reserve_additional_memory() argument
459 long credit; in balloon_process() local
464 credit = current_credit(); in balloon_process()
466 if (credit > 0) { in balloon_process()
468 state = increase_reservation(credit); in balloon_process()
470 state = reserve_additional_memory(credit); in balloon_process()
473 if (credit < 0) in balloon_process()
474 state = decrease_reservation(-credit, GFP_BALLOON); in balloon_process()
482 } while (credit && state == BP_DONE); in balloon_process()