Lines Matching refs:bi
102 liab = c->bi.idx_growth + c->bi.data_growth + c->bi.dd_growth; in get_liability()
177 idx_size = c->bi.old_idx_sz + c->bi.idx_growth + c->bi.uncommitted_idx; in ubifs_calc_min_idx_lebs()
341 min_idx_lebs, c->bi.min_idx_lebs, rsvd_idx_lebs); in do_budget_space()
346 outstanding = c->bi.data_growth + c->bi.dd_growth; in do_budget_space()
357 c->bi.min_idx_lebs = min_idx_lebs; in do_budget_space()
390 data_growth = req->new_ino ? c->bi.inode_budget : 0; in calc_data_growth()
392 data_growth += c->bi.page_budget; in calc_data_growth()
394 data_growth += c->bi.dent_budget; in calc_data_growth()
410 dd_growth = req->dirtied_page ? c->bi.page_budget : 0; in calc_dd_growth()
413 dd_growth += c->bi.inode_budget << (req->dirtied_ino - 1); in calc_dd_growth()
415 dd_growth += c->bi.dent_budget; in calc_dd_growth()
456 ubifs_assert(c->bi.idx_growth >= 0); in ubifs_budget_space()
457 ubifs_assert(c->bi.data_growth >= 0); in ubifs_budget_space()
458 ubifs_assert(c->bi.dd_growth >= 0); in ubifs_budget_space()
460 if (unlikely(c->bi.nospace) && (c->bi.nospace_rp || !can_use_rp(c))) { in ubifs_budget_space()
466 c->bi.idx_growth += idx_growth; in ubifs_budget_space()
467 c->bi.data_growth += data_growth; in ubifs_budget_space()
468 c->bi.dd_growth += dd_growth; in ubifs_budget_space()
480 c->bi.idx_growth -= idx_growth; in ubifs_budget_space()
481 c->bi.data_growth -= data_growth; in ubifs_budget_space()
482 c->bi.dd_growth -= dd_growth; in ubifs_budget_space()
502 c->bi.nospace = 1; in ubifs_budget_space()
504 c->bi.nospace_rp = 1; in ubifs_budget_space()
549 c->bi.nospace = c->bi.nospace_rp = 0; in ubifs_release_budget()
553 c->bi.idx_growth -= req->idx_growth; in ubifs_release_budget()
554 c->bi.uncommitted_idx += req->idx_growth; in ubifs_release_budget()
555 c->bi.data_growth -= req->data_growth; in ubifs_release_budget()
556 c->bi.dd_growth -= req->dd_growth; in ubifs_release_budget()
557 c->bi.min_idx_lebs = ubifs_calc_min_idx_lebs(c); in ubifs_release_budget()
559 ubifs_assert(c->bi.idx_growth >= 0); in ubifs_release_budget()
560 ubifs_assert(c->bi.data_growth >= 0); in ubifs_release_budget()
561 ubifs_assert(c->bi.dd_growth >= 0); in ubifs_release_budget()
562 ubifs_assert(c->bi.min_idx_lebs < c->main_lebs); in ubifs_release_budget()
563 ubifs_assert(!(c->bi.idx_growth & 7)); in ubifs_release_budget()
564 ubifs_assert(!(c->bi.data_growth & 7)); in ubifs_release_budget()
565 ubifs_assert(!(c->bi.dd_growth & 7)); in ubifs_release_budget()
582 c->bi.idx_growth -= c->max_idx_node_sz << UBIFS_BLOCKS_PER_PAGE_SHIFT; in ubifs_convert_page_budget()
584 c->bi.data_growth -= c->bi.page_budget; in ubifs_convert_page_budget()
586 c->bi.dd_growth += c->bi.page_budget; in ubifs_convert_page_budget()
588 c->bi.min_idx_lebs = ubifs_calc_min_idx_lebs(c); in ubifs_convert_page_budget()
608 req.dd_growth = c->bi.inode_budget + ALIGN(ui->data_len, 8); in ubifs_release_dirty_inode_budget()
680 ubifs_assert(c->bi.min_idx_lebs == ubifs_calc_min_idx_lebs(c)); in ubifs_get_free_space_nolock()
681 outstanding = c->bi.data_growth + c->bi.dd_growth; in ubifs_get_free_space_nolock()
682 available = ubifs_calc_available(c, c->bi.min_idx_lebs); in ubifs_get_free_space_nolock()
695 if (c->bi.min_idx_lebs > c->lst.idx_lebs) in ubifs_get_free_space_nolock()
696 rsvd_idx_lebs = c->bi.min_idx_lebs - c->lst.idx_lebs; in ubifs_get_free_space_nolock()