Lines Matching refs:credit
223 static enum bp_state reserve_additional_memory(long credit) in reserve_additional_memory() argument
227 unsigned long balloon_hotplug = credit; in reserve_additional_memory()
263 balloon_hotplug -= credit; in reserve_additional_memory()
265 balloon_stats.hotplug_pages += credit; in reserve_additional_memory()
320 static enum bp_state reserve_additional_memory(long credit) in reserve_additional_memory() argument
494 long credit; in balloon_process() local
499 credit = current_credit(); in balloon_process()
501 if (credit > 0) { in balloon_process()
503 state = increase_reservation(credit); in balloon_process()
505 state = reserve_additional_memory(credit); in balloon_process()
508 if (credit < 0) in balloon_process()
509 state = decrease_reservation(-credit, GFP_BALLOON); in balloon_process()
517 } while (credit && state == BP_DONE); in balloon_process()