Lines Matching refs:bi
97 liab = c->bi.idx_growth + c->bi.data_growth + c->bi.dd_growth; in get_liability()
171 idx_size = c->bi.old_idx_sz + c->bi.idx_growth + c->bi.uncommitted_idx; in ubifs_calc_min_idx_lebs()
334 min_idx_lebs, c->bi.min_idx_lebs, rsvd_idx_lebs); in do_budget_space()
339 outstanding = c->bi.data_growth + c->bi.dd_growth; in do_budget_space()
350 c->bi.min_idx_lebs = min_idx_lebs; in do_budget_space()
383 data_growth = req->new_ino ? c->bi.inode_budget : 0; in calc_data_growth()
385 data_growth += c->bi.page_budget; in calc_data_growth()
387 data_growth += c->bi.dent_budget; in calc_data_growth()
403 dd_growth = req->dirtied_page ? c->bi.page_budget : 0; in calc_dd_growth()
406 dd_growth += c->bi.inode_budget << (req->dirtied_ino - 1); in calc_dd_growth()
408 dd_growth += c->bi.dent_budget; in calc_dd_growth()
449 ubifs_assert(c, c->bi.idx_growth >= 0); in ubifs_budget_space()
450 ubifs_assert(c, c->bi.data_growth >= 0); in ubifs_budget_space()
451 ubifs_assert(c, c->bi.dd_growth >= 0); in ubifs_budget_space()
453 if (unlikely(c->bi.nospace) && (c->bi.nospace_rp || !can_use_rp(c))) { in ubifs_budget_space()
459 c->bi.idx_growth += idx_growth; in ubifs_budget_space()
460 c->bi.data_growth += data_growth; in ubifs_budget_space()
461 c->bi.dd_growth += dd_growth; in ubifs_budget_space()
473 c->bi.idx_growth -= idx_growth; in ubifs_budget_space()
474 c->bi.data_growth -= data_growth; in ubifs_budget_space()
475 c->bi.dd_growth -= dd_growth; in ubifs_budget_space()
495 c->bi.nospace = 1; in ubifs_budget_space()
497 c->bi.nospace_rp = 1; in ubifs_budget_space()
542 c->bi.nospace = c->bi.nospace_rp = 0; in ubifs_release_budget()
546 c->bi.idx_growth -= req->idx_growth; in ubifs_release_budget()
547 c->bi.uncommitted_idx += req->idx_growth; in ubifs_release_budget()
548 c->bi.data_growth -= req->data_growth; in ubifs_release_budget()
549 c->bi.dd_growth -= req->dd_growth; in ubifs_release_budget()
550 c->bi.min_idx_lebs = ubifs_calc_min_idx_lebs(c); in ubifs_release_budget()
552 ubifs_assert(c, c->bi.idx_growth >= 0); in ubifs_release_budget()
553 ubifs_assert(c, c->bi.data_growth >= 0); in ubifs_release_budget()
554 ubifs_assert(c, c->bi.dd_growth >= 0); in ubifs_release_budget()
555 ubifs_assert(c, c->bi.min_idx_lebs < c->main_lebs); in ubifs_release_budget()
556 ubifs_assert(c, !(c->bi.idx_growth & 7)); in ubifs_release_budget()
557 ubifs_assert(c, !(c->bi.data_growth & 7)); in ubifs_release_budget()
558 ubifs_assert(c, !(c->bi.dd_growth & 7)); in ubifs_release_budget()
575 c->bi.idx_growth -= c->max_idx_node_sz << UBIFS_BLOCKS_PER_PAGE_SHIFT; in ubifs_convert_page_budget()
577 c->bi.data_growth -= c->bi.page_budget; in ubifs_convert_page_budget()
579 c->bi.dd_growth += c->bi.page_budget; in ubifs_convert_page_budget()
581 c->bi.min_idx_lebs = ubifs_calc_min_idx_lebs(c); in ubifs_convert_page_budget()
601 req.dd_growth = c->bi.inode_budget + ALIGN(ui->data_len, 8); in ubifs_release_dirty_inode_budget()
671 ubifs_assert(c, c->bi.min_idx_lebs == ubifs_calc_min_idx_lebs(c)); in ubifs_get_free_space_nolock()
672 outstanding = c->bi.data_growth + c->bi.dd_growth; in ubifs_get_free_space_nolock()
673 available = ubifs_calc_available(c, c->bi.min_idx_lebs); in ubifs_get_free_space_nolock()
686 if (c->bi.min_idx_lebs > c->lst.idx_lebs) in ubifs_get_free_space_nolock()
687 rsvd_idx_lebs = c->bi.min_idx_lebs - c->lst.idx_lebs; in ubifs_get_free_space_nolock()