Lines Matching refs:available
208 long long available; in ubifs_calc_available() local
210 available = c->main_bytes - c->lst.total_used; in ubifs_calc_available()
232 available -= (long long)subtract_lebs * c->leb_size; in ubifs_calc_available()
235 available -= c->lst.total_dead; in ubifs_calc_available()
243 available -= c->lst.total_dark; in ubifs_calc_available()
253 available -= subtract_lebs * c->dark_wm; in ubifs_calc_available()
257 return available > 0 ? available : 0; in ubifs_calc_available()
304 long long outstanding, available; in do_budget_space() local
346 available = ubifs_calc_available(c, min_idx_lebs); in do_budget_space()
349 if (unlikely(available < outstanding)) { in do_budget_space()
351 available, outstanding); in do_budget_space()
355 if (available - outstanding <= c->rp_size && !can_use_rp(c)) in do_budget_space()
679 long long available, outstanding, free; in ubifs_get_free_space_nolock() local
683 available = ubifs_calc_available(c, c->bi.min_idx_lebs); in ubifs_get_free_space_nolock()
703 available += lebs * (c->dark_wm - c->leb_overhead); in ubifs_get_free_space_nolock()
705 if (available > outstanding) in ubifs_get_free_space_nolock()
706 free = ubifs_reported_space(c, available - outstanding); in ubifs_get_free_space_nolock()