Searched refs:leb_cnt (Results 1 – 14 of 14) sorted by relevance
/Linux-v6.6/fs/ubifs/ |
D | sb.c | 101 if (c->leb_cnt < 0x7FFFFFFF / DEFAULT_JNL_PERCENT) in create_default_filesystem() 103 jnl_lebs = c->leb_cnt * DEFAULT_JNL_PERCENT / 100; in create_default_filesystem() 105 jnl_lebs = (c->leb_cnt / 100) * DEFAULT_JNL_PERCENT; in create_default_filesystem() 122 if (c->leb_cnt - min_leb_cnt > 8) { in create_default_filesystem() 139 if (c->leb_cnt - min_leb_cnt > 1) in create_default_filesystem() 147 main_lebs = c->leb_cnt - UBIFS_SB_LEBS - UBIFS_MST_LEBS - log_lebs; in create_default_filesystem() 152 c->max_leb_cnt = c->leb_cnt; in create_default_filesystem() 161 main_first = c->leb_cnt - main_lebs; in create_default_filesystem() 198 sup->leb_cnt = cpu_to_le32(c->leb_cnt); in create_default_filesystem() 250 mst->leb_cnt = cpu_to_le32(c->leb_cnt); in create_default_filesystem() [all …]
|
D | master.c | 199 if (c->zroot.lnum >= c->leb_cnt || c->zroot.lnum < c->main_first || in validate_master() 211 if (c->gc_lnum >= c->leb_cnt || c->gc_lnum < c->main_first) { in validate_master() 216 if (c->ihead_lnum >= c->leb_cnt || c->ihead_lnum < c->main_first || in validate_master() 256 if (c->lscan_lnum < c->main_first || c->lscan_lnum >= c->leb_cnt) { in validate_master() 374 old_leb_cnt = le32_to_cpu(c->mst_node->leb_cnt); in ubifs_read_master() 388 if (old_leb_cnt != c->leb_cnt) { in ubifs_read_master() 390 int growth = c->leb_cnt - old_leb_cnt; in ubifs_read_master() 392 if (c->leb_cnt < old_leb_cnt || in ubifs_read_master() 393 c->leb_cnt < UBIFS_MIN_LEB_CNT) { in ubifs_read_master() 400 old_leb_cnt, c->leb_cnt); in ubifs_read_master() [all …]
|
D | tnc_commit.c | 685 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()
|
D | io.c | 251 ubifs_assert(c, lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_check_node() 638 ubifs_assert(c, lnum >= 0 && lnum < c->leb_cnt); in ubifs_wbuf_seek_nolock() 748 ubifs_assert(c, len > 0 && wbuf->lnum >= 0 && wbuf->lnum < c->leb_cnt); in ubifs_wbuf_write_nolock() 965 ubifs_assert(c, lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_write_node_hmac() 1028 ubifs_assert(c, wbuf && lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_read_node_wbuf() 1103 ubifs_assert(c, lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_read_node()
|
D | ubifs-media.h | 660 __le32 leb_cnt; member 751 __le32 leb_cnt; member
|
D | find.c | 174 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()
|
D | lpt.c | 51 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()
|
D | super.c | 530 c->leb_cnt = c->vi.size; in init_constants_early() 545 if (c->leb_cnt < UBIFS_MIN_LEB_CNT) { in init_constants_early() 547 c->leb_cnt, UBIFS_MIN_LEB_CNT); in init_constants_early() 944 for (lnum = 0; lnum < c->leb_cnt; lnum++) { in check_volume_empty() 1588 c->main_lebs, c->main_first, c->leb_cnt - 1); in mount_ubifs()
|
D | tnc_misc.c | 320 zbr->lnum >= c->leb_cnt || zbr->offs < 0 || in read_znode()
|
D | debug.c | 366 pr_err("\tleb_cnt %u\n", le32_to_cpu(sup->leb_cnt)); in ubifs_dump_node() 414 pr_err("\tleb_cnt %u\n", le32_to_cpu(mst->leb_cnt)); in ubifs_dump_node() 781 for (lnum = c->main_first; lnum < c->leb_cnt; lnum++) { in ubifs_dump_lprops()
|
D | replay.c | 954 if (jhead >= c->jhead_cnt || lnum >= c->leb_cnt || in validate_ref()
|
D | ubifs.h | 1383 int leb_cnt; member
|
D | lprops.c | 1271 err = ubifs_lpt_scan_nolock(c, c->main_first, c->leb_cnt - 1, in dbg_check_lprops()
|
D | tnc.c | 1690 ubifs_assert(c, wbuf && lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in read_wbuf()
|