Lines Matching refs:bi

94 	liab = c->bi.idx_growth + c->bi.data_growth + c->bi.dd_growth;  in get_liability()
168 idx_size = c->bi.old_idx_sz + c->bi.idx_growth + c->bi.uncommitted_idx; in ubifs_calc_min_idx_lebs()
330 min_idx_lebs, c->bi.min_idx_lebs, rsvd_idx_lebs); in do_budget_space()
335 outstanding = c->bi.data_growth + c->bi.dd_growth; in do_budget_space()
346 c->bi.min_idx_lebs = min_idx_lebs; in do_budget_space()
379 data_growth = req->new_ino ? c->bi.inode_budget : 0; in calc_data_growth()
381 data_growth += c->bi.page_budget; in calc_data_growth()
383 data_growth += c->bi.dent_budget; in calc_data_growth()
399 dd_growth = req->dirtied_page ? c->bi.page_budget : 0; in calc_dd_growth()
402 dd_growth += c->bi.inode_budget * req->dirtied_ino; in calc_dd_growth()
404 dd_growth += c->bi.dent_budget; in calc_dd_growth()
445 ubifs_assert(c, c->bi.idx_growth >= 0); in ubifs_budget_space()
446 ubifs_assert(c, c->bi.data_growth >= 0); in ubifs_budget_space()
447 ubifs_assert(c, c->bi.dd_growth >= 0); in ubifs_budget_space()
449 if (unlikely(c->bi.nospace) && (c->bi.nospace_rp || !can_use_rp(c))) { in ubifs_budget_space()
455 c->bi.idx_growth += idx_growth; in ubifs_budget_space()
456 c->bi.data_growth += data_growth; in ubifs_budget_space()
457 c->bi.dd_growth += dd_growth; in ubifs_budget_space()
469 c->bi.idx_growth -= idx_growth; in ubifs_budget_space()
470 c->bi.data_growth -= data_growth; in ubifs_budget_space()
471 c->bi.dd_growth -= dd_growth; in ubifs_budget_space()
491 c->bi.nospace = 1; in ubifs_budget_space()
493 c->bi.nospace_rp = 1; in ubifs_budget_space()
538 c->bi.nospace = c->bi.nospace_rp = 0; in ubifs_release_budget()
542 c->bi.idx_growth -= req->idx_growth; in ubifs_release_budget()
543 c->bi.uncommitted_idx += req->idx_growth; in ubifs_release_budget()
544 c->bi.data_growth -= req->data_growth; in ubifs_release_budget()
545 c->bi.dd_growth -= req->dd_growth; in ubifs_release_budget()
546 c->bi.min_idx_lebs = ubifs_calc_min_idx_lebs(c); in ubifs_release_budget()
548 ubifs_assert(c, c->bi.idx_growth >= 0); in ubifs_release_budget()
549 ubifs_assert(c, c->bi.data_growth >= 0); in ubifs_release_budget()
550 ubifs_assert(c, c->bi.dd_growth >= 0); in ubifs_release_budget()
551 ubifs_assert(c, c->bi.min_idx_lebs < c->main_lebs); in ubifs_release_budget()
552 ubifs_assert(c, !(c->bi.idx_growth & 7)); in ubifs_release_budget()
553 ubifs_assert(c, !(c->bi.data_growth & 7)); in ubifs_release_budget()
554 ubifs_assert(c, !(c->bi.dd_growth & 7)); in ubifs_release_budget()
571 c->bi.idx_growth -= c->max_idx_node_sz << UBIFS_BLOCKS_PER_PAGE_SHIFT; in ubifs_convert_page_budget()
573 c->bi.data_growth -= c->bi.page_budget; in ubifs_convert_page_budget()
575 c->bi.dd_growth += c->bi.page_budget; in ubifs_convert_page_budget()
577 c->bi.min_idx_lebs = ubifs_calc_min_idx_lebs(c); in ubifs_convert_page_budget()
597 req.dd_growth = c->bi.inode_budget + ALIGN(ui->data_len, 8); in ubifs_release_dirty_inode_budget()
667 ubifs_assert(c, c->bi.min_idx_lebs == ubifs_calc_min_idx_lebs(c)); in ubifs_get_free_space_nolock()
668 outstanding = c->bi.data_growth + c->bi.dd_growth; in ubifs_get_free_space_nolock()
669 available = ubifs_calc_available(c, c->bi.min_idx_lebs); in ubifs_get_free_space_nolock()
682 if (c->bi.min_idx_lebs > c->lst.idx_lebs) in ubifs_get_free_space_nolock()
683 rsvd_idx_lebs = c->bi.min_idx_lebs - c->lst.idx_lebs; in ubifs_get_free_space_nolock()