Lines Matching refs:available
197 long long available; in ubifs_calc_available() local
199 available = c->main_bytes - c->lst.total_used; in ubifs_calc_available()
221 available -= (long long)subtract_lebs * c->leb_size; in ubifs_calc_available()
224 available -= c->lst.total_dead; in ubifs_calc_available()
232 available -= c->lst.total_dark; in ubifs_calc_available()
242 available -= subtract_lebs * c->dark_wm; in ubifs_calc_available()
246 return available > 0 ? available : 0; in ubifs_calc_available()
293 long long outstanding, available; in do_budget_space() local
335 available = ubifs_calc_available(c, min_idx_lebs); in do_budget_space()
338 if (unlikely(available < outstanding)) { in do_budget_space()
340 available, outstanding); in do_budget_space()
344 if (available - outstanding <= c->rp_size && !can_use_rp(c)) in do_budget_space()
666 long long available, outstanding, free; in ubifs_get_free_space_nolock() local
670 available = ubifs_calc_available(c, c->bi.min_idx_lebs); in ubifs_get_free_space_nolock()
690 available += lebs * (c->dark_wm - c->leb_overhead); in ubifs_get_free_space_nolock()
692 if (available > outstanding) in ubifs_get_free_space_nolock()
693 free = ubifs_reported_space(c, available - outstanding); in ubifs_get_free_space_nolock()