Lines Matching refs:main_lebs
84 int err, tmp, jnl_lebs, log_lebs, max_buds, main_lebs, main_first; in create_default_filesystem() local
147 main_lebs = c->leb_cnt - UBIFS_SB_LEBS - UBIFS_MST_LEBS - log_lebs; in create_default_filesystem()
148 main_lebs -= orph_lebs; in create_default_filesystem()
153 err = ubifs_create_dflt_lpt(c, &main_lebs, lpt_first, &lpt_lebs, in create_default_filesystem()
161 main_first = c->leb_cnt - main_lebs; in create_default_filesystem()
216 main_bytes = (long long)main_lebs * c->leb_size; in create_default_filesystem()
248 mst->empty_lebs = cpu_to_le32(main_lebs - 2); in create_default_filesystem()
267 tmp64 = ((long long)(c->main_lebs - 1) * c->dark_wm); in create_default_filesystem()
409 c->main_lebs < UBIFS_MIN_MAIN_LEBS) { in validate_sb()
434 if (c->main_lebs < UBIFS_MIN_MAIN_LEBS) { in validate_sb()
436 c->main_lebs, UBIFS_MIN_MAIN_LEBS); in validate_sb()
447 max_bytes = (long long)c->leb_size * c->main_lebs; in validate_sb()
474 c->orph_lebs + c->main_lebs != c->leb_cnt) { in validate_sb()
775 c->main_lebs = c->leb_cnt - UBIFS_SB_LEBS - UBIFS_MST_LEBS; in ubifs_read_superblock()
776 c->main_lebs -= c->log_lebs + c->lpt_lebs + c->orph_lebs; in ubifs_read_superblock()
777 c->main_first = c->leb_cnt - c->main_lebs; in ubifs_read_superblock()