Searched refs:main_lebs (Results 1 – 10 of 10) sorted by relevance
/linux-4.19.296/fs/ubifs/ |
D | sb.c | 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() [all …]
|
D | lpt.c | 63 n = c->main_lebs + c->max_leb_cnt - c->leb_cnt; in do_calc_lpt_geom() 73 c->pnode_cnt = DIV_ROUND_UP(c->main_lebs, UBIFS_LPT_FANOUT); in do_calc_lpt_geom() 174 static int calc_dflt_lpt_geom(struct ubifs_info *c, int *main_lebs, in calc_dflt_lpt_geom() argument 182 c->main_lebs = *main_lebs - c->lpt_lebs; in calc_dflt_lpt_geom() 183 if (c->main_lebs <= 0) in calc_dflt_lpt_geom() 209 c->main_lebs = *main_lebs - c->lpt_lebs; in calc_dflt_lpt_geom() 210 if (c->main_lebs <= 0) in calc_dflt_lpt_geom() 219 *main_lebs = c->main_lebs; in calc_dflt_lpt_geom() 610 int ubifs_create_dflt_lpt(struct ubifs_info *c, int *main_lebs, int lpt_first, in ubifs_create_dflt_lpt() argument 621 err = calc_dflt_lpt_geom(c, main_lebs, big_lpt); in ubifs_create_dflt_lpt() [all …]
|
D | master.c | 150 main_sz = (long long)c->main_lebs * c->leb_size; in validate_master() 188 if (c->lst.empty_lebs < 0 || c->lst.empty_lebs > c->main_lebs - 2) { in validate_master() 193 if (c->lst.idx_lebs < 0 || c->lst.idx_lebs > c->main_lebs - 1) { in validate_master()
|
D | misc.h | 269 c->lst.empty_lebs <= c->main_lebs); in ubifs_release_lprops()
|
D | super.c | 660 c->main_bytes = (long long)c->main_lebs * c->leb_size; in init_constants_sb() 761 tmp64 = c->main_lebs - 1 - 1 - MIN_INDEX_LEBS - c->jhead_cnt + 1; in init_constants_master() 1442 x = (long long)c->main_lebs * c->leb_size; in mount_ubifs() 1448 x, x >> 20, c->main_lebs, in mount_ubifs() 1467 c->main_lebs, c->main_first, c->leb_cnt - 1); in mount_ubifs() 1489 x = (long long)c->main_lebs * c->dark_wm; in mount_ubifs()
|
D | lprops.c | 305 ubifs_assert(c, c->in_a_category_cnt <= c->main_lebs); in ubifs_add_to_cat() 548 c->lst.empty_lebs <= c->main_lebs); in ubifs_change_lp() 550 ubifs_assert(c, c->freeable_cnt <= c->main_lebs); in ubifs_change_lp()
|
D | budget.c | 566 ubifs_assert(c, c->bi.min_idx_lebs < c->main_lebs); in ubifs_release_budget()
|
D | ubifs.h | 1309 int main_lebs; member 1695 int ubifs_create_dflt_lpt(struct ubifs_info *c, int *main_lebs, int lpt_first,
|
D | find.c | 691 if (c->in_a_category_cnt != c->main_lebs || in ubifs_find_free_leb_for_idx()
|
D | lpt_commit.c | 1555 cnt = DIV_ROUND_UP(c->main_lebs, UBIFS_LPT_FANOUT); in dbg_is_pnode_dirty() 1709 cnt = DIV_ROUND_UP(c->main_lebs, UBIFS_LPT_FANOUT); in dbg_check_ltab()
|