Searched refs:leb_cnt (Results 1 – 14 of 14) sorted by relevance
/fs/ubifs/ |
D | sb.c | 95 if (c->leb_cnt < 0x7FFFFFFF / DEFAULT_JNL_PERCENT) in create_default_filesystem() 97 jnl_lebs = c->leb_cnt * DEFAULT_JNL_PERCENT / 100; in create_default_filesystem() 99 jnl_lebs = (c->leb_cnt / 100) * DEFAULT_JNL_PERCENT; in create_default_filesystem() 116 if (c->leb_cnt - min_leb_cnt > 8) { in create_default_filesystem() 133 if (c->leb_cnt - min_leb_cnt > 1) in create_default_filesystem() 141 main_lebs = c->leb_cnt - UBIFS_SB_LEBS - UBIFS_MST_LEBS - log_lebs; in create_default_filesystem() 146 c->max_leb_cnt = c->leb_cnt; in create_default_filesystem() 155 main_first = c->leb_cnt - main_lebs; in create_default_filesystem() 172 sup->leb_cnt = cpu_to_le32(c->leb_cnt); in create_default_filesystem() 232 mst->leb_cnt = cpu_to_le32(c->leb_cnt); in create_default_filesystem() [all …]
|
D | master.c | 126 if (c->zroot.lnum >= c->leb_cnt || c->zroot.lnum < c->main_first || in validate_master() 138 if (c->gc_lnum >= c->leb_cnt || c->gc_lnum < c->main_first) { in validate_master() 143 if (c->ihead_lnum >= c->leb_cnt || c->ihead_lnum < c->main_first || in validate_master() 183 if (c->lscan_lnum < c->main_first || c->lscan_lnum >= c->leb_cnt) { in validate_master() 301 old_leb_cnt = le32_to_cpu(c->mst_node->leb_cnt); in ubifs_read_master() 313 if (old_leb_cnt != c->leb_cnt) { in ubifs_read_master() 315 int growth = c->leb_cnt - old_leb_cnt; in ubifs_read_master() 317 if (c->leb_cnt < old_leb_cnt || in ubifs_read_master() 318 c->leb_cnt < UBIFS_MIN_LEB_CNT) { in ubifs_read_master() 325 old_leb_cnt, c->leb_cnt); in ubifs_read_master() [all …]
|
D | tnc_commit.c | 668 int i, leb_cnt, lnum; in alloc_idx_lebs() local 672 leb_cnt = get_leb_cnt(c, cnt); in alloc_idx_lebs() 673 dbg_cmt("need about %d empty LEBS for TNC commit", leb_cnt); in alloc_idx_lebs() 674 if (!leb_cnt) in alloc_idx_lebs() 676 c->ilebs = kmalloc(leb_cnt * sizeof(int), GFP_NOFS); in alloc_idx_lebs() 679 for (i = 0; i < leb_cnt; i++) { in alloc_idx_lebs()
|
D | io.c | 244 ubifs_assert(lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_check_node() 573 ubifs_assert(lnum >= 0 && lnum < c->leb_cnt); in ubifs_wbuf_seek_nolock() 683 ubifs_assert(len > 0 && wbuf->lnum >= 0 && wbuf->lnum < c->leb_cnt); in ubifs_wbuf_write_nolock() 866 ubifs_assert(lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_write_node() 906 ubifs_assert(wbuf && lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_read_node_wbuf() 981 ubifs_assert(lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_read_node()
|
D | ubifs-media.h | 630 __le32 leb_cnt; member 714 __le32 leb_cnt; member
|
D | lpt.c | 63 n = c->main_lebs + c->max_leb_cnt - c->leb_cnt; in do_calc_lpt_geom() 629 c->main_first = c->leb_cnt - *main_lebs; in ubifs_create_dflt_lpt() 1076 if (lnum < c->main_first || lnum >= c->leb_cnt) in unpack_lsave() 1178 if (lnum >= c->leb_cnt) in set_pnode_lnum() 1371 if (lnum >= c->leb_cnt) in read_lsave() 1932 if (start_lnum >= c->leb_cnt) in ubifs_lpt_scan_nolock() 1936 ubifs_assert(start_lnum >= c->main_first && start_lnum < c->leb_cnt); in ubifs_lpt_scan_nolock() 1937 ubifs_assert(end_lnum >= c->main_first && end_lnum < c->leb_cnt); in ubifs_lpt_scan_nolock() 2043 if (lnum + 1 >= c->leb_cnt) { in ubifs_lpt_scan_nolock() 2113 if (lnum >= c->leb_cnt) in dbg_chk_pnode()
|
D | find.c | 186 ubifs_assert(data.lnum >= c->main_first && data.lnum < c->leb_cnt); in scan_for_dirty() 465 ubifs_assert(data.lnum >= c->main_first && data.lnum < c->leb_cnt); in do_find_free_space() 645 ubifs_assert(data.lnum >= c->main_first && data.lnum < c->leb_cnt); in scan_for_leb_for_idx() 873 ubifs_assert(data.lnum >= c->main_first && data.lnum < c->leb_cnt); in find_dirty_idx_leb()
|
D | super.c | 511 c->leb_cnt = c->vi.size; in init_constants_early() 526 if (c->leb_cnt < UBIFS_MIN_LEB_CNT) { in init_constants_early() 528 c->leb_cnt, UBIFS_MIN_LEB_CNT); in init_constants_early() 911 for (lnum = 0; lnum < c->leb_cnt; lnum++) { in check_volume_empty() 1441 c->main_lebs, c->main_first, c->leb_cnt - 1); in mount_ubifs() 1581 if (c->old_leb_cnt != c->leb_cnt) { in ubifs_remount_rw() 1589 sup->leb_cnt = cpu_to_le32(c->leb_cnt); in ubifs_remount_rw()
|
D | tnc_misc.c | 317 zbr->lnum >= c->leb_cnt || zbr->offs < 0 || in read_znode()
|
D | replay.c | 798 if (jhead >= c->jhead_cnt || lnum >= c->leb_cnt || in validate_ref()
|
D | debug.c | 343 pr_err("\tleb_cnt %u\n", le32_to_cpu(sup->leb_cnt)); in ubifs_dump_node() 391 pr_err("\tleb_cnt %u\n", le32_to_cpu(mst->leb_cnt)); in ubifs_dump_node() 746 for (lnum = c->main_first; lnum < c->leb_cnt; lnum++) { in ubifs_dump_lprops()
|
D | ubifs.h | 1321 int leb_cnt; member
|
D | lprops.c | 1285 err = ubifs_lpt_scan_nolock(c, c->main_first, c->leb_cnt - 1, in dbg_check_lprops()
|
D | tnc.c | 1659 ubifs_assert(wbuf && lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in read_wbuf()
|