Lines Matching refs:main_lebs
51 n = c->main_lebs + c->max_leb_cnt - c->leb_cnt; in do_calc_lpt_geom()
61 c->pnode_cnt = DIV_ROUND_UP(c->main_lebs, UBIFS_LPT_FANOUT); in do_calc_lpt_geom()
162 static int calc_dflt_lpt_geom(struct ubifs_info *c, int *main_lebs, in calc_dflt_lpt_geom() argument
170 c->main_lebs = *main_lebs - c->lpt_lebs; in calc_dflt_lpt_geom()
171 if (c->main_lebs <= 0) in calc_dflt_lpt_geom()
197 c->main_lebs = *main_lebs - c->lpt_lebs; in calc_dflt_lpt_geom()
198 if (c->main_lebs <= 0) in calc_dflt_lpt_geom()
207 *main_lebs = c->main_lebs; in calc_dflt_lpt_geom()
599 int ubifs_create_dflt_lpt(struct ubifs_info *c, int *main_lebs, int lpt_first, in ubifs_create_dflt_lpt() argument
611 err = calc_dflt_lpt_geom(c, main_lebs, big_lpt); in ubifs_create_dflt_lpt()
621 c->main_first = c->leb_cnt - *main_lebs; in ubifs_create_dflt_lpt()
796 for (i = 0; i < c->lsave_cnt && i < *main_lebs; i++) in ubifs_create_dflt_lpt()