/kernel/linux/linux-5.10/fs/ubifs/ |
H A D | budget.c | 168 int idx_lebs; in ubifs_calc_min_idx_lebs() local 179 idx_lebs = div_u64(idx_size + c->idx_leb_size - 1, c->idx_leb_size); in ubifs_calc_min_idx_lebs() 184 idx_lebs += 1; in ubifs_calc_min_idx_lebs() 185 if (idx_lebs < MIN_INDEX_LEBS) in ubifs_calc_min_idx_lebs() 186 idx_lebs = MIN_INDEX_LEBS; in ubifs_calc_min_idx_lebs() 187 return idx_lebs; in ubifs_calc_min_idx_lebs() 242 if (c->lst.idx_lebs > min_idx_lebs) { in ubifs_calc_available() 243 subtract_lebs = c->lst.idx_lebs - min_idx_lebs; in ubifs_calc_available() 282 * Notes about @c->bi.min_idx_lebs and @c->lst.idx_lebs variables: 283 * o @c->lst.idx_lebs i [all...] |
H A D | master.c | 266 if (c->lst.idx_lebs < 0 || c->lst.idx_lebs > c->main_lebs - 1) { in validate_master() 373 c->lst.idx_lebs = le32_to_cpu(c->mst_node->idx_lebs); in ubifs_read_master()
|
H A D | tnc_commit.c | 362 c->gap_lebs = kmalloc_array(c->lst.idx_lebs + 1, sizeof(int), in layout_in_gaps() 367 old_idx_lebs = c->lst.idx_lebs; in layout_in_gaps() 369 ubifs_assert(c, p < c->lst.idx_lebs); in layout_in_gaps() 397 * oob, because @c->lst.idx_lebs could be increased by in layout_in_gaps() 404 old_idx_lebs < c->lst.idx_lebs) { in layout_in_gaps() 405 old_idx_lebs = c->lst.idx_lebs; in layout_in_gaps() 806 dbg_cmt("number of index LEBs %d", c->lst.idx_lebs); in ubifs_tnc_start_commit()
|
H A D | lprops.c | 595 c->lst.idx_lebs -= 1; in ubifs_change_lp() 597 c->lst.idx_lebs += 1; in ubifs_change_lp() 1209 lst->idx_lebs += 1; in scan_check_cb() 1278 lst.idx_lebs != c->lst.idx_lebs || in dbg_check_lprops() 1283 ubifs_err(c, "calculated: empty_lebs %d, idx_lebs %d, total_free %lld, total_dirty %lld, total_used %lld", in dbg_check_lprops() 1284 lst.empty_lebs, lst.idx_lebs, lst.total_free, in dbg_check_lprops() 1286 ubifs_err(c, "read from lprops: empty_lebs %d, idx_lebs %d, total_free %lld, total_dirty %lld, total_used %lld", in dbg_check_lprops() 1287 c->lst.empty_lebs, c->lst.idx_lebs, c->lst.total_free, in dbg_check_lprops()
|
H A D | find.c | 243 if (c->bi.min_idx_lebs >= c->lst.idx_lebs) { in ubifs_find_dirty_leb() 244 rsvd_idx_lebs = c->bi.min_idx_lebs - c->lst.idx_lebs; in ubifs_find_dirty_leb() 267 exclude_index = (c->bi.min_idx_lebs >= c->lst.idx_lebs); in ubifs_find_dirty_leb() 492 if (c->bi.min_idx_lebs > c->lst.idx_lebs) in ubifs_find_free_space() 493 rsvd_idx_lebs = c->bi.min_idx_lebs - c->lst.idx_lebs; in ubifs_find_free_space()
|
H A D | commit.c | 179 c->mst_node->idx_lebs = cpu_to_le32(lst.idx_lebs); in do_commit()
|
H A D | ubifs-media.h | 715 * @idx_lebs: number of indexing logical eraseblocks 750 __le32 idx_lebs; member
|
H A D | sb.c | 246 mst->idx_lebs = cpu_to_le32(1); in create_default_filesystem()
|
H A D | debug.c | 416 pr_err("\tidx_lebs %u\n", le32_to_cpu(mst->idx_lebs)); in ubifs_dump_node() 603 pr_err("(pid %d) Lprops statistics: empty_lebs %d, idx_lebs %d\n", in ubifs_dump_lstats() 604 current->pid, lst->empty_lebs, lst->idx_lebs); in ubifs_dump_lstats()
|
H A D | ubifs.h | 507 * @idx_lebs: number of indexing LEBs 532 int idx_lebs; member
|
H A D | super.c | 1586 dbg_gen("index LEBs: %d", c->lst.idx_lebs); in mount_ubifs()
|
/kernel/linux/linux-6.6/fs/ubifs/ |
H A D | budget.c | 165 int idx_lebs; in ubifs_calc_min_idx_lebs() local 176 idx_lebs = div_u64(idx_size + c->idx_leb_size - 1, c->idx_leb_size); in ubifs_calc_min_idx_lebs() 181 idx_lebs += 1; in ubifs_calc_min_idx_lebs() 182 if (idx_lebs < MIN_INDEX_LEBS) in ubifs_calc_min_idx_lebs() 183 idx_lebs = MIN_INDEX_LEBS; in ubifs_calc_min_idx_lebs() 184 return idx_lebs; in ubifs_calc_min_idx_lebs() 239 if (c->lst.idx_lebs > min_idx_lebs) { in ubifs_calc_available() 240 subtract_lebs = c->lst.idx_lebs - min_idx_lebs; in ubifs_calc_available() 279 * Notes about @c->bi.min_idx_lebs and @c->lst.idx_lebs variables: 280 * o @c->lst.idx_lebs i [all...] |
H A D | master.c | 266 if (c->lst.idx_lebs < 0 || c->lst.idx_lebs > c->main_lebs - 1) { in validate_master() 373 c->lst.idx_lebs = le32_to_cpu(c->mst_node->idx_lebs); in ubifs_read_master()
|
H A D | tnc_commit.c | 362 c->gap_lebs = kmalloc_array(c->lst.idx_lebs + 1, sizeof(int), in layout_in_gaps() 367 old_idx_lebs = c->lst.idx_lebs; in layout_in_gaps() 369 ubifs_assert(c, p < c->lst.idx_lebs); in layout_in_gaps() 397 * oob, because @c->lst.idx_lebs could be increased by in layout_in_gaps() 404 old_idx_lebs < c->lst.idx_lebs) { in layout_in_gaps() 405 old_idx_lebs = c->lst.idx_lebs; in layout_in_gaps() 806 dbg_cmt("number of index LEBs %d", c->lst.idx_lebs); in ubifs_tnc_start_commit()
|
H A D | lprops.c | 595 c->lst.idx_lebs -= 1; in ubifs_change_lp() 597 c->lst.idx_lebs += 1; in ubifs_change_lp() 1209 lst->idx_lebs += 1; in scan_check_cb() 1278 lst.idx_lebs != c->lst.idx_lebs || in dbg_check_lprops() 1283 ubifs_err(c, "calculated: empty_lebs %d, idx_lebs %d, total_free %lld, total_dirty %lld, total_used %lld", in dbg_check_lprops() 1284 lst.empty_lebs, lst.idx_lebs, lst.total_free, in dbg_check_lprops() 1286 ubifs_err(c, "read from lprops: empty_lebs %d, idx_lebs %d, total_free %lld, total_dirty %lld, total_used %lld", in dbg_check_lprops() 1287 c->lst.empty_lebs, c->lst.idx_lebs, c->lst.total_free, in dbg_check_lprops()
|
H A D | find.c | 243 if (c->bi.min_idx_lebs >= c->lst.idx_lebs) { in ubifs_find_dirty_leb() 244 rsvd_idx_lebs = c->bi.min_idx_lebs - c->lst.idx_lebs; in ubifs_find_dirty_leb() 267 exclude_index = (c->bi.min_idx_lebs >= c->lst.idx_lebs); in ubifs_find_dirty_leb() 492 if (c->bi.min_idx_lebs > c->lst.idx_lebs) in ubifs_find_free_space() 493 rsvd_idx_lebs = c->bi.min_idx_lebs - c->lst.idx_lebs; in ubifs_find_free_space()
|
H A D | commit.c | 179 c->mst_node->idx_lebs = cpu_to_le32(lst.idx_lebs); in do_commit()
|
H A D | ubifs-media.h | 715 * @idx_lebs: number of indexing logical eraseblocks 750 __le32 idx_lebs; member
|
H A D | sb.c | 249 mst->idx_lebs = cpu_to_le32(1); in create_default_filesystem()
|
H A D | debug.c | 416 pr_err("\tidx_lebs %u\n", le32_to_cpu(mst->idx_lebs)); in ubifs_dump_node() 603 pr_err("(pid %d) Lprops statistics: empty_lebs %d, idx_lebs %d\n", in ubifs_dump_lstats() 604 current->pid, lst->empty_lebs, lst->idx_lebs); in ubifs_dump_lstats()
|
H A D | ubifs.h | 516 * @idx_lebs: number of indexing LEBs 541 int idx_lebs; member
|
H A D | super.c | 1589 dbg_gen("index LEBs: %d", c->lst.idx_lebs); in mount_ubifs()
|