Lines Matching refs:bi

94 	liab = c->bi.idx_growth + c->bi.data_growth + c->bi.dd_growth;
168 idx_size = c->bi.old_idx_sz + c->bi.idx_growth + c->bi.uncommitted_idx;
279 * Notes about @c->bi.min_idx_lebs and @c->lst.idx_lebs variables:
284 * o @c->bi.min_idx_lebs is the number of LEBS the index presumably takes. IOW,
285 * the index may be consolidated to take up to @c->bi.min_idx_lebs LEBs.
330 min_idx_lebs, c->bi.min_idx_lebs, rsvd_idx_lebs);
335 outstanding = c->bi.data_growth + c->bi.dd_growth;
346 c->bi.min_idx_lebs = min_idx_lebs;
379 data_growth = req->new_ino ? c->bi.inode_budget : 0;
381 data_growth += c->bi.page_budget;
383 data_growth += c->bi.dent_budget;
399 dd_growth = req->dirtied_page ? c->bi.page_budget : 0;
402 dd_growth += c->bi.inode_budget * req->dirtied_ino;
404 dd_growth += c->bi.dent_budget;
445 ubifs_assert(c, c->bi.idx_growth >= 0);
446 ubifs_assert(c, c->bi.data_growth >= 0);
447 ubifs_assert(c, c->bi.dd_growth >= 0);
449 if (unlikely(c->bi.nospace) && (c->bi.nospace_rp || !can_use_rp(c))) {
455 c->bi.idx_growth += idx_growth;
456 c->bi.data_growth += data_growth;
457 c->bi.dd_growth += dd_growth;
469 c->bi.idx_growth -= idx_growth;
470 c->bi.data_growth -= data_growth;
471 c->bi.dd_growth -= dd_growth;
491 c->bi.nospace = 1;
493 c->bi.nospace_rp = 1;
508 * from @c->bi.idx_growth to @c->bi.uncommitted_idx. The latter will be zeroed
538 c->bi.nospace = c->bi.nospace_rp = 0;
542 c->bi.idx_growth -= req->idx_growth;
543 c->bi.uncommitted_idx += req->idx_growth;
544 c->bi.data_growth -= req->data_growth;
545 c->bi.dd_growth -= req->dd_growth;
546 c->bi.min_idx_lebs = ubifs_calc_min_idx_lebs(c);
548 ubifs_assert(c, c->bi.idx_growth >= 0);
549 ubifs_assert(c, c->bi.data_growth >= 0);
550 ubifs_assert(c, c->bi.dd_growth >= 0);
551 ubifs_assert(c, c->bi.min_idx_lebs < c->main_lebs);
552 ubifs_assert(c, !(c->bi.idx_growth & 7));
553 ubifs_assert(c, !(c->bi.data_growth & 7));
554 ubifs_assert(c, !(c->bi.dd_growth & 7));
571 c->bi.idx_growth -= c->max_idx_node_sz << UBIFS_BLOCKS_PER_PAGE_SHIFT;
573 c->bi.data_growth -= c->bi.page_budget;
575 c->bi.dd_growth += c->bi.page_budget;
577 c->bi.min_idx_lebs = ubifs_calc_min_idx_lebs(c);
597 req.dd_growth = c->bi.inode_budget + ALIGN(ui->data_len, 8);
667 ubifs_assert(c, c->bi.min_idx_lebs == ubifs_calc_min_idx_lebs(c));
668 outstanding = c->bi.data_growth + c->bi.dd_growth;
669 available = ubifs_calc_available(c, c->bi.min_idx_lebs);
682 if (c->bi.min_idx_lebs > c->lst.idx_lebs)
683 rsvd_idx_lebs = c->bi.min_idx_lebs - c->lst.idx_lebs;