Searched refs:main_lebs (Results 1 – 10 of 10) sorted by relevance
/linux-6.1.9/fs/ubifs/ |
D | sb.c | 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() [all …]
|
D | lpt.c | 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() [all …]
|
D | master.c | 223 main_sz = (long long)c->main_lebs * c->leb_size; in validate_master() 261 if (c->lst.empty_lebs < 0 || c->lst.empty_lebs > c->main_lebs - 2) { in validate_master() 266 if (c->lst.idx_lebs < 0 || c->lst.idx_lebs > c->main_lebs - 1) { in validate_master()
|
D | misc.h | 258 c->lst.empty_lebs <= c->main_lebs); in ubifs_release_lprops()
|
D | super.c | 682 c->main_bytes = (long long)c->main_lebs * c->leb_size; in init_constants_sb() 783 tmp64 = c->main_lebs - 1 - 1 - MIN_INDEX_LEBS - c->jhead_cnt + 1; in init_constants_master() 1554 x = (long long)c->main_lebs * c->leb_size; in mount_ubifs() 1560 x, x >> 20, c->main_lebs, c->max_leb_cnt, in mount_ubifs() 1579 c->main_lebs, c->main_first, c->leb_cnt - 1); in mount_ubifs() 1601 x = (long long)c->main_lebs * c->dark_wm; in mount_ubifs()
|
D | lprops.c | 293 ubifs_assert(c, c->in_a_category_cnt <= c->main_lebs); in ubifs_add_to_cat() 536 c->lst.empty_lebs <= c->main_lebs); in ubifs_change_lp() 538 ubifs_assert(c, c->freeable_cnt <= c->main_lebs); in ubifs_change_lp()
|
D | budget.c | 552 ubifs_assert(c, c->bi.min_idx_lebs < c->main_lebs); in ubifs_release_budget()
|
D | ubifs.h | 1364 int main_lebs; member 1960 int ubifs_create_dflt_lpt(struct ubifs_info *c, int *main_lebs, int lpt_first,
|
D | find.c | 679 if (c->in_a_category_cnt != c->main_lebs || in ubifs_find_free_leb_for_idx()
|
D | lpt_commit.c | 1515 cnt = DIV_ROUND_UP(c->main_lebs, UBIFS_LPT_FANOUT); in dbg_is_pnode_dirty() 1669 cnt = DIV_ROUND_UP(c->main_lebs, UBIFS_LPT_FANOUT); in dbg_check_ltab()
|