Lines Matching refs:main_lebs
93 int err, tmp, jnl_lebs, log_lebs, max_buds, main_lebs, main_first; in create_default_filesystem() local
154 main_lebs = c->leb_cnt - UBIFS_SB_LEBS - UBIFS_MST_LEBS - log_lebs; in create_default_filesystem()
155 main_lebs -= orph_lebs; in create_default_filesystem()
160 err = ubifs_create_dflt_lpt(c, &main_lebs, lpt_first, &lpt_lebs, in create_default_filesystem()
168 main_first = c->leb_cnt - main_lebs; in create_default_filesystem()
204 main_bytes = (long long)main_lebs * c->leb_size; in create_default_filesystem()
244 mst->empty_lebs = cpu_to_le32(main_lebs - 2); in create_default_filesystem()
262 tmp64 = ((long long)(c->main_lebs - 1) * c->dark_wm); in create_default_filesystem()
400 c->main_lebs < UBIFS_MIN_MAIN_LEBS) { in validate_sb()
425 if (c->main_lebs < UBIFS_MIN_MAIN_LEBS) { in validate_sb()
427 c->main_lebs, UBIFS_MIN_MAIN_LEBS); in validate_sb()
438 max_bytes = (long long)c->leb_size * c->main_lebs; in validate_sb()
465 c->orph_lebs + c->main_lebs != c->leb_cnt) { in validate_sb()
694 c->main_lebs = c->leb_cnt - UBIFS_SB_LEBS - UBIFS_MST_LEBS; in ubifs_read_superblock()
695 c->main_lebs -= c->log_lebs + c->lpt_lebs + c->orph_lebs; in ubifs_read_superblock()
696 c->main_first = c->leb_cnt - c->main_lebs; in ubifs_read_superblock()