Lines Matching refs:available
200 long long available; in ubifs_calc_available() local
202 available = c->main_bytes - c->lst.total_used; in ubifs_calc_available()
223 available -= (long long)subtract_lebs * c->leb_size; in ubifs_calc_available()
226 available -= c->lst.total_dead; in ubifs_calc_available()
234 available -= c->lst.total_dark; in ubifs_calc_available()
244 available -= subtract_lebs * c->dark_wm; in ubifs_calc_available()
248 return available > 0 ? available : 0; in ubifs_calc_available()
295 long long outstanding, available; in do_budget_space() local
337 available = ubifs_calc_available(c, min_idx_lebs); in do_budget_space()
340 if (unlikely(available < outstanding)) { in do_budget_space()
342 available, outstanding); in do_budget_space()
346 if (available - outstanding <= c->rp_size && !can_use_rp(c)) in do_budget_space()
668 long long available, outstanding, free; in ubifs_get_free_space_nolock() local
672 available = ubifs_calc_available(c, c->bi.min_idx_lebs); in ubifs_get_free_space_nolock()
692 available += lebs * (c->dark_wm - c->leb_overhead); in ubifs_get_free_space_nolock()
694 if (available > outstanding) in ubifs_get_free_space_nolock()
695 free = ubifs_reported_space(c, available - outstanding); in ubifs_get_free_space_nolock()