Lines Matching refs:credit
278 long credit;
283 credit = balloon_stats.target_pages + balloon_stats.target_unpopulated
290 if (credit <= 0)
293 balloon_hotplug = round_up(credit, PAGES_PER_SECTION);
500 * needed, or if the credit has changed while state is not BP_DONE.
502 static bool balloon_thread_cond(long credit)
505 credit = 0;
507 return current_credit() != credit || kthread_should_stop();
518 long credit;
536 credit = current_credit();
539 balloon_thread_cond(credit), timeout);
546 credit = current_credit();
548 if (credit > 0) {
550 balloon_state = increase_reservation(credit);
555 if (credit < 0) {
558 n_pages = min(-credit, si_mem_available());
561 if (balloon_state == BP_DONE && n_pages != -credit &&
776 long credit, last_credit = 0;
788 while ((credit = current_credit()) < 0) {
789 if (credit != last_credit) {
791 last_credit = credit;
795 -credit);