/kernel/linux/linux-5.10/fs/ubifs/ |
H A D | sb.c | 81 int err, tmp, jnl_lebs, log_lebs, max_buds, main_lebs, main_first; in create_default_filesystem() local 144 main_lebs = c->leb_cnt - UBIFS_SB_LEBS - UBIFS_MST_LEBS - log_lebs; in create_default_filesystem() 145 main_lebs -= orph_lebs; in create_default_filesystem() 150 err = ubifs_create_dflt_lpt(c, &main_lebs, lpt_first, &lpt_lebs, in create_default_filesystem() 158 main_first = c->leb_cnt - main_lebs; in create_default_filesystem() 213 main_bytes = (long long)main_lebs * c->leb_size; in create_default_filesystem() 245 mst->empty_lebs = cpu_to_le32(main_lebs - 2); in create_default_filesystem() 264 tmp64 = ((long long)(c->main_lebs - 1) * c->dark_wm); in create_default_filesystem() 406 c->main_lebs < UBIFS_MIN_MAIN_LEBS) { in validate_sb() 431 if (c->main_lebs < UBIFS_MIN_MAIN_LEB in validate_sb() [all...] |
H A 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() 153 * @main_lebs: number of main area LEBs is passed and returned here 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 < in calc_dflt_lpt_geom() 599 ubifs_create_dflt_lpt(struct ubifs_info *c, int *main_lebs, int lpt_first, int *lpt_lebs, int *big_lpt, u8 *hash) ubifs_create_dflt_lpt() argument [all...] |
H A 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()
|
H A D | misc.h | 258 c->lst.empty_lebs <= c->main_lebs); in ubifs_release_lprops()
|
H A 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() 1560 x = (long long)c->main_lebs * c->leb_size; in mount_ubifs() 1566 x, x >> 20, c->main_lebs, in mount_ubifs() 1585 c->main_lebs, c->main_first, c->leb_cnt - 1); in mount_ubifs() 1607 x = (long long)c->main_lebs * c->dark_wm; in mount_ubifs()
|
H A 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()
|
H A D | budget.c | 554 ubifs_assert(c, c->bi.min_idx_lebs < c->main_lebs); in ubifs_release_budget()
|
H A D | ubifs.h | 1085 * @main_lebs: count of LEBs in the main area 1336 int main_lebs; member 1936 int ubifs_create_dflt_lpt(struct ubifs_info *c, int *main_lebs, int lpt_first,
|
H A D | find.c | 679 if (c->in_a_category_cnt != c->main_lebs || in ubifs_find_free_leb_for_idx()
|
H A 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()
|
/kernel/linux/linux-6.6/fs/ubifs/ |
H A 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_LEB in validate_sb() [all...] |
H A 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() 153 * @main_lebs: number of main area LEBs is passed and returned here 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 < in calc_dflt_lpt_geom() 599 ubifs_create_dflt_lpt(struct ubifs_info *c, int *main_lebs, int lpt_first, int *lpt_lebs, int *big_lpt, u8 *hash) ubifs_create_dflt_lpt() argument [all...] |
H A 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()
|
H A D | misc.h | 258 c->lst.empty_lebs <= c->main_lebs); in ubifs_release_lprops()
|
H A 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() 1563 x = (long long)c->main_lebs * c->leb_size; in mount_ubifs() 1569 x, x >> 20, c->main_lebs, c->max_leb_cnt, in mount_ubifs() 1588 c->main_lebs, c->main_first, c->leb_cnt - 1); in mount_ubifs() 1610 x = (long long)c->main_lebs * c->dark_wm; in mount_ubifs()
|
H A 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()
|
H A D | budget.c | 551 ubifs_assert(c, c->bi.min_idx_lebs < c->main_lebs); in ubifs_release_budget()
|
H A D | ubifs.h | 1106 * @main_lebs: count of LEBs in the main area 1364 int main_lebs; member 1965 int ubifs_create_dflt_lpt(struct ubifs_info *c, int *main_lebs, int lpt_first,
|
H A D | find.c | 679 if (c->in_a_category_cnt != c->main_lebs || in ubifs_find_free_leb_for_idx()
|
H A 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()
|