Lines Matching refs:log_lebs
84 int err, tmp, jnl_lebs, log_lebs, max_buds, main_lebs, main_first; in create_default_filesystem() local
119 log_lebs = tmp / c->leb_size; in create_default_filesystem()
121 log_lebs += 1; in create_default_filesystem()
124 log_lebs += 1; in create_default_filesystem()
128 max_buds = jnl_lebs - log_lebs; in create_default_filesystem()
147 main_lebs = c->leb_cnt - UBIFS_SB_LEBS - UBIFS_MST_LEBS - log_lebs; in create_default_filesystem()
150 lpt_first = UBIFS_LOG_LNUM + log_lebs; in create_default_filesystem()
201 sup->log_lebs = cpu_to_le32(log_lebs); in create_default_filesystem()
406 if (c->log_lebs < UBIFS_MIN_LOG_LEBS || in validate_sb()
419 min_leb_cnt = UBIFS_SB_LEBS + UBIFS_MST_LEBS + c->log_lebs; in validate_sb()
468 c->log_lebs - c->lpt_lebs - c->orph_lebs)) { in validate_sb()
473 if (UBIFS_SB_LEBS + UBIFS_MST_LEBS + c->log_lebs + c->lpt_lebs + in validate_sb()
718 c->log_lebs = le32_to_cpu(sup->log_lebs); in ubifs_read_superblock()
769 c->log_bytes = (long long)c->log_lebs * c->leb_size; in ubifs_read_superblock()
770 c->log_last = UBIFS_LOG_LNUM + c->log_lebs - 1; in ubifs_read_superblock()
771 c->lpt_first = UBIFS_LOG_LNUM + c->log_lebs; in ubifs_read_superblock()
776 c->main_lebs -= c->log_lebs + c->lpt_lebs + c->orph_lebs; in ubifs_read_superblock()