Home
last modified time | relevance | path

Searched refs:leb_cnt (Results 1 – 14 of 14) sorted by relevance

/fs/ubifs/
Dsb.c99 if (c->leb_cnt < 0x7FFFFFFF / DEFAULT_JNL_PERCENT) in create_default_filesystem()
101 jnl_lebs = c->leb_cnt * DEFAULT_JNL_PERCENT / 100; in create_default_filesystem()
103 jnl_lebs = (c->leb_cnt / 100) * DEFAULT_JNL_PERCENT; in create_default_filesystem()
120 if (c->leb_cnt - min_leb_cnt > 8) { in create_default_filesystem()
137 if (c->leb_cnt - min_leb_cnt > 1) in create_default_filesystem()
145 main_lebs = c->leb_cnt - UBIFS_SB_LEBS - UBIFS_MST_LEBS - log_lebs; in create_default_filesystem()
150 c->max_leb_cnt = c->leb_cnt; in create_default_filesystem()
159 main_first = c->leb_cnt - main_lebs; in create_default_filesystem()
195 sup->leb_cnt = cpu_to_le32(c->leb_cnt); in create_default_filesystem()
247 mst->leb_cnt = cpu_to_le32(c->leb_cnt); in create_default_filesystem()
[all …]
Dmaster.c202 if (c->zroot.lnum >= c->leb_cnt || c->zroot.lnum < c->main_first || in validate_master()
214 if (c->gc_lnum >= c->leb_cnt || c->gc_lnum < c->main_first) { in validate_master()
219 if (c->ihead_lnum >= c->leb_cnt || c->ihead_lnum < c->main_first || in validate_master()
259 if (c->lscan_lnum < c->main_first || c->lscan_lnum >= c->leb_cnt) { in validate_master()
377 old_leb_cnt = le32_to_cpu(c->mst_node->leb_cnt); in ubifs_read_master()
391 if (old_leb_cnt != c->leb_cnt) { in ubifs_read_master()
393 int growth = c->leb_cnt - old_leb_cnt; in ubifs_read_master()
395 if (c->leb_cnt < old_leb_cnt || in ubifs_read_master()
396 c->leb_cnt < UBIFS_MIN_LEB_CNT) { in ubifs_read_master()
403 old_leb_cnt, c->leb_cnt); in ubifs_read_master()
[all …]
Dtnc_commit.c685 int i, leb_cnt, lnum; in alloc_idx_lebs() local
689 leb_cnt = get_leb_cnt(c, cnt); in alloc_idx_lebs()
690 dbg_cmt("need about %d empty LEBS for TNC commit", leb_cnt); in alloc_idx_lebs()
691 if (!leb_cnt) in alloc_idx_lebs()
693 c->ilebs = kmalloc_array(leb_cnt, sizeof(int), GFP_NOFS); in alloc_idx_lebs()
696 for (i = 0; i < leb_cnt; i++) { in alloc_idx_lebs()
Dio.c232 ubifs_assert(c, lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_check_node()
628 ubifs_assert(c, lnum >= 0 && lnum < c->leb_cnt); in ubifs_wbuf_seek_nolock()
738 ubifs_assert(c, len > 0 && wbuf->lnum >= 0 && wbuf->lnum < c->leb_cnt); in ubifs_wbuf_write_nolock()
957 ubifs_assert(c, lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_write_node_hmac()
1020 ubifs_assert(c, wbuf && lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_read_node_wbuf()
1095 ubifs_assert(c, lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_read_node()
Dfind.c174 ubifs_assert(c, data.lnum >= c->main_first && data.lnum < c->leb_cnt); in scan_for_dirty()
453 ubifs_assert(c, data.lnum >= c->main_first && data.lnum < c->leb_cnt); in do_find_free_space()
633 ubifs_assert(c, data.lnum >= c->main_first && data.lnum < c->leb_cnt); in scan_for_leb_for_idx()
851 ubifs_assert(c, data.lnum >= c->main_first && data.lnum < c->leb_cnt); in find_dirty_idx_leb()
Dubifs-media.h660 __le32 leb_cnt; member
751 __le32 leb_cnt; member
Dlpt.c51 n = c->main_lebs + c->max_leb_cnt - c->leb_cnt; in do_calc_lpt_geom()
621 c->main_first = c->leb_cnt - *main_lebs; in ubifs_create_dflt_lpt()
1087 if (lnum < c->main_first || lnum >= c->leb_cnt) in unpack_lsave()
1189 if (lnum >= c->leb_cnt) in set_pnode_lnum()
1382 if (lnum >= c->leb_cnt) in read_lsave()
2088 if (start_lnum >= c->leb_cnt) in ubifs_lpt_scan_nolock()
2092 ubifs_assert(c, start_lnum >= c->main_first && start_lnum < c->leb_cnt); in ubifs_lpt_scan_nolock()
2093 ubifs_assert(c, end_lnum >= c->main_first && end_lnum < c->leb_cnt); in ubifs_lpt_scan_nolock()
2198 if (lnum + 1 >= c->leb_cnt) { in ubifs_lpt_scan_nolock()
2268 if (lnum >= c->leb_cnt) in dbg_chk_pnode()
Dsuper.c512 c->leb_cnt = c->vi.size; in init_constants_early()
527 if (c->leb_cnt < UBIFS_MIN_LEB_CNT) { in init_constants_early()
529 c->leb_cnt, UBIFS_MIN_LEB_CNT); in init_constants_early()
926 for (lnum = 0; lnum < c->leb_cnt; lnum++) { in check_volume_empty()
1567 c->main_lebs, c->main_first, c->leb_cnt - 1); in mount_ubifs()
Dtnc_misc.c320 zbr->lnum >= c->leb_cnt || zbr->offs < 0 || in read_znode()
Ddebug.c336 pr_err("\tleb_cnt %u\n", le32_to_cpu(sup->leb_cnt)); in ubifs_dump_node()
384 pr_err("\tleb_cnt %u\n", le32_to_cpu(mst->leb_cnt)); in ubifs_dump_node()
744 for (lnum = c->main_first; lnum < c->leb_cnt; lnum++) { in ubifs_dump_lprops()
Dreplay.c962 if (jhead >= c->jhead_cnt || lnum >= c->leb_cnt || in validate_ref()
Dubifs.h1356 int leb_cnt; member
Dlprops.c1271 err = ubifs_lpt_scan_nolock(c, c->main_first, c->leb_cnt - 1, in dbg_check_lprops()
Dtnc.c1691 ubifs_assert(c, wbuf && lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in read_wbuf()