Lines Matching refs:bi

97 	liab = c->bi.idx_growth + c->bi.data_growth + c->bi.dd_growth;
171 idx_size = c->bi.old_idx_sz + c->bi.idx_growth + c->bi.uncommitted_idx;
282 * Notes about @c->bi.min_idx_lebs and @c->lst.idx_lebs variables:
287 * o @c->bi.min_idx_lebs is the number of LEBS the index presumably takes. IOW,
288 * the index may be consolidated to take up to @c->bi.min_idx_lebs LEBs.
333 min_idx_lebs, c->bi.min_idx_lebs, rsvd_idx_lebs);
338 outstanding = c->bi.data_growth + c->bi.dd_growth;
349 c->bi.min_idx_lebs = min_idx_lebs;
382 data_growth = req->new_ino ? c->bi.inode_budget : 0;
384 data_growth += c->bi.page_budget;
386 data_growth += c->bi.dent_budget;
402 dd_growth = req->dirtied_page ? c->bi.page_budget : 0;
405 dd_growth += c->bi.inode_budget * req->dirtied_ino;
407 dd_growth += c->bi.dent_budget;
448 ubifs_assert(c, c->bi.idx_growth >= 0);
449 ubifs_assert(c, c->bi.data_growth >= 0);
450 ubifs_assert(c, c->bi.dd_growth >= 0);
452 if (unlikely(c->bi.nospace) && (c->bi.nospace_rp || !can_use_rp(c))) {
458 c->bi.idx_growth += idx_growth;
459 c->bi.data_growth += data_growth;
460 c->bi.dd_growth += dd_growth;
472 c->bi.idx_growth -= idx_growth;
473 c->bi.data_growth -= data_growth;
474 c->bi.dd_growth -= dd_growth;
494 c->bi.nospace = 1;
496 c->bi.nospace_rp = 1;
511 * from @c->bi.idx_growth to @c->bi.uncommitted_idx. The latter will be zeroed
541 c->bi.nospace = c->bi.nospace_rp = 0;
545 c->bi.idx_growth -= req->idx_growth;
546 c->bi.uncommitted_idx += req->idx_growth;
547 c->bi.data_growth -= req->data_growth;
548 c->bi.dd_growth -= req->dd_growth;
549 c->bi.min_idx_lebs = ubifs_calc_min_idx_lebs(c);
551 ubifs_assert(c, c->bi.idx_growth >= 0);
552 ubifs_assert(c, c->bi.data_growth >= 0);
553 ubifs_assert(c, c->bi.dd_growth >= 0);
554 ubifs_assert(c, c->bi.min_idx_lebs < c->main_lebs);
555 ubifs_assert(c, !(c->bi.idx_growth & 7));
556 ubifs_assert(c, !(c->bi.data_growth & 7));
557 ubifs_assert(c, !(c->bi.dd_growth & 7));
574 c->bi.idx_growth -= c->max_idx_node_sz << UBIFS_BLOCKS_PER_PAGE_SHIFT;
576 c->bi.data_growth -= c->bi.page_budget;
578 c->bi.dd_growth += c->bi.page_budget;
580 c->bi.min_idx_lebs = ubifs_calc_min_idx_lebs(c);
600 req.dd_growth = c->bi.inode_budget + ALIGN(ui->data_len, 8);
670 ubifs_assert(c, c->bi.min_idx_lebs == ubifs_calc_min_idx_lebs(c));
671 outstanding = c->bi.data_growth + c->bi.dd_growth;
672 available = ubifs_calc_available(c, c->bi.min_idx_lebs);
685 if (c->bi.min_idx_lebs > c->lst.idx_lebs)
686 rsvd_idx_lebs = c->bi.min_idx_lebs - c->lst.idx_lebs;