Lines Matching refs:min_idx_lebs
194 long long ubifs_calc_available(const struct ubifs_info *c, int min_idx_lebs) in ubifs_calc_available() argument
206 subtract_lebs = min_idx_lebs; in ubifs_calc_available()
240 if (c->lst.idx_lebs > min_idx_lebs) { in ubifs_calc_available()
241 subtract_lebs = c->lst.idx_lebs - min_idx_lebs; in ubifs_calc_available()
294 int lebs, rsvd_idx_lebs, min_idx_lebs; in do_budget_space() local
297 min_idx_lebs = ubifs_calc_min_idx_lebs(c); in do_budget_space()
300 if (min_idx_lebs > c->lst.idx_lebs) in do_budget_space()
301 rsvd_idx_lebs = min_idx_lebs - c->lst.idx_lebs; in do_budget_space()
331 min_idx_lebs, c->bi.min_idx_lebs, rsvd_idx_lebs); in do_budget_space()
335 available = ubifs_calc_available(c, min_idx_lebs); in do_budget_space()
347 c->bi.min_idx_lebs = min_idx_lebs; in do_budget_space()
547 c->bi.min_idx_lebs = ubifs_calc_min_idx_lebs(c); in ubifs_release_budget()
552 ubifs_assert(c, c->bi.min_idx_lebs < c->main_lebs); in ubifs_release_budget()
578 c->bi.min_idx_lebs = ubifs_calc_min_idx_lebs(c); in ubifs_convert_page_budget()
668 ubifs_assert(c, c->bi.min_idx_lebs == ubifs_calc_min_idx_lebs(c)); in ubifs_get_free_space_nolock()
670 available = ubifs_calc_available(c, c->bi.min_idx_lebs); in ubifs_get_free_space_nolock()
683 if (c->bi.min_idx_lebs > c->lst.idx_lebs) in ubifs_get_free_space_nolock()
684 rsvd_idx_lebs = c->bi.min_idx_lebs - c->lst.idx_lebs; in ubifs_get_free_space_nolock()