Searched refs:leb_cnt (Results 1 – 14 of 14) sorted by relevance
/linux-4.19.296/fs/ubifs/ |
D | sb.c | 108 if (c->leb_cnt < 0x7FFFFFFF / DEFAULT_JNL_PERCENT) in create_default_filesystem() 110 jnl_lebs = c->leb_cnt * DEFAULT_JNL_PERCENT / 100; in create_default_filesystem() 112 jnl_lebs = (c->leb_cnt / 100) * DEFAULT_JNL_PERCENT; in create_default_filesystem() 129 if (c->leb_cnt - min_leb_cnt > 8) { in create_default_filesystem() 146 if (c->leb_cnt - min_leb_cnt > 1) in create_default_filesystem() 154 main_lebs = c->leb_cnt - UBIFS_SB_LEBS - UBIFS_MST_LEBS - log_lebs; in create_default_filesystem() 159 c->max_leb_cnt = c->leb_cnt; in create_default_filesystem() 168 main_first = c->leb_cnt - main_lebs; in create_default_filesystem() 186 sup->leb_cnt = cpu_to_le32(c->leb_cnt); in create_default_filesystem() 246 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 | 690 int i, leb_cnt, lnum; in alloc_idx_lebs() local 694 leb_cnt = get_leb_cnt(c, cnt); in alloc_idx_lebs() 695 dbg_cmt("need about %d empty LEBS for TNC commit", leb_cnt); in alloc_idx_lebs() 696 if (!leb_cnt) in alloc_idx_lebs() 698 c->ilebs = kmalloc_array(leb_cnt, sizeof(int), GFP_NOFS); in alloc_idx_lebs() 701 for (i = 0; i < leb_cnt; i++) { in alloc_idx_lebs()
|
D | ubifs-media.h | 645 __le32 leb_cnt; member 729 __le32 leb_cnt; member
|
D | io.c | 244 ubifs_assert(c, lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_check_node() 592 ubifs_assert(c, lnum >= 0 && lnum < c->leb_cnt); in ubifs_wbuf_seek_nolock() 702 ubifs_assert(c, len > 0 && wbuf->lnum >= 0 && wbuf->lnum < c->leb_cnt); in ubifs_wbuf_write_nolock() 920 ubifs_assert(c, lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_write_node() 960 ubifs_assert(c, wbuf && lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_read_node_wbuf() 1035 ubifs_assert(c, lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_read_node()
|
D | find.c | 186 ubifs_assert(c, data.lnum >= c->main_first && data.lnum < c->leb_cnt); in scan_for_dirty() 465 ubifs_assert(c, data.lnum >= c->main_first && data.lnum < c->leb_cnt); in do_find_free_space() 645 ubifs_assert(c, data.lnum >= c->main_first && data.lnum < c->leb_cnt); in scan_for_leb_for_idx() 870 ubifs_assert(c, data.lnum >= c->main_first && data.lnum < c->leb_cnt); in find_dirty_idx_leb()
|
D | lpt.c | 63 n = c->main_lebs + c->max_leb_cnt - c->leb_cnt; in do_calc_lpt_geom() 631 c->main_first = c->leb_cnt - *main_lebs; in ubifs_create_dflt_lpt() 1080 if (lnum < c->main_first || lnum >= c->leb_cnt) in unpack_lsave() 1182 if (lnum >= c->leb_cnt) in set_pnode_lnum() 1375 if (lnum >= c->leb_cnt) in read_lsave() 1936 if (start_lnum >= c->leb_cnt) in ubifs_lpt_scan_nolock() 1940 ubifs_assert(c, start_lnum >= c->main_first && start_lnum < c->leb_cnt); in ubifs_lpt_scan_nolock() 1941 ubifs_assert(c, end_lnum >= c->main_first && end_lnum < c->leb_cnt); in ubifs_lpt_scan_nolock() 2046 if (lnum + 1 >= c->leb_cnt) { in ubifs_lpt_scan_nolock() 2116 if (lnum >= c->leb_cnt) in dbg_chk_pnode()
|
D | super.c | 517 c->leb_cnt = c->vi.size; in init_constants_early() 532 if (c->leb_cnt < UBIFS_MIN_LEB_CNT) { in init_constants_early() 534 c->leb_cnt, UBIFS_MIN_LEB_CNT); in init_constants_early() 901 for (lnum = 0; lnum < c->leb_cnt; lnum++) { in check_volume_empty() 1467 c->main_lebs, c->main_first, c->leb_cnt - 1); in mount_ubifs() 1607 if (c->old_leb_cnt != c->leb_cnt) { in ubifs_remount_rw() 1615 sup->leb_cnt = cpu_to_le32(c->leb_cnt); in ubifs_remount_rw()
|
D | tnc_misc.c | 323 zbr->lnum >= c->leb_cnt || zbr->offs < 0 || in read_znode()
|
D | debug.c | 346 pr_err("\tleb_cnt %u\n", le32_to_cpu(sup->leb_cnt)); in ubifs_dump_node() 394 pr_err("\tleb_cnt %u\n", le32_to_cpu(mst->leb_cnt)); in ubifs_dump_node() 750 for (lnum = c->main_first; lnum < c->leb_cnt; lnum++) { in ubifs_dump_lprops()
|
D | replay.c | 834 if (jhead >= c->jhead_cnt || lnum >= c->leb_cnt || in validate_ref()
|
D | ubifs.h | 1327 int leb_cnt; member
|
D | lprops.c | 1283 err = ubifs_lpt_scan_nolock(c, c->main_first, c->leb_cnt - 1, in dbg_check_lprops()
|
D | tnc.c | 1698 ubifs_assert(c, wbuf && lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in read_wbuf()
|