Lines Matching refs:credit
262 long credit;
267 credit = balloon_stats.target_pages + balloon_stats.target_unpopulated
274 if (credit <= 0)
277 balloon_hotplug = round_up(credit, PAGES_PER_SECTION);
484 * needed, or if the credit has changed while state is not BP_DONE.
486 static bool balloon_thread_cond(long credit)
489 credit = 0;
491 return current_credit() != credit || kthread_should_stop();
502 long credit;
520 credit = current_credit();
523 balloon_thread_cond(credit), timeout);
530 credit = current_credit();
532 if (credit > 0) {
534 balloon_state = increase_reservation(credit);
539 if (credit < 0) {
542 n_pages = min(-credit, si_mem_available());
545 if (balloon_state == BP_DONE && n_pages != -credit &&
752 long credit, last_credit = 0;
764 while ((credit = current_credit()) < 0) {
765 if (credit != last_credit) {
767 last_credit = credit;
771 -credit);