Lines Matching refs:available
207 long long available; in ubifs_calc_available() local
209 available = c->main_bytes - c->lst.total_used; in ubifs_calc_available()
231 available -= (long long)subtract_lebs * c->leb_size; in ubifs_calc_available()
234 available -= c->lst.total_dead; in ubifs_calc_available()
242 available -= c->lst.total_dark; in ubifs_calc_available()
252 available -= subtract_lebs * c->dark_wm; in ubifs_calc_available()
256 return available > 0 ? available : 0; in ubifs_calc_available()
303 long long outstanding, available; in do_budget_space() local
345 available = ubifs_calc_available(c, min_idx_lebs); in do_budget_space()
348 if (unlikely(available < outstanding)) { in do_budget_space()
350 available, outstanding); in do_budget_space()
354 if (available - outstanding <= c->rp_size && !can_use_rp(c)) in do_budget_space()
678 long long available, outstanding, free; in ubifs_get_free_space_nolock() local
682 available = ubifs_calc_available(c, c->bi.min_idx_lebs); in ubifs_get_free_space_nolock()
702 available += lebs * (c->dark_wm - c->leb_overhead); in ubifs_get_free_space_nolock()
704 if (available > outstanding) in ubifs_get_free_space_nolock()
705 free = ubifs_reported_space(c, available - outstanding); in ubifs_get_free_space_nolock()