Searched refs:zroot (Results 1 – 8 of 8) sorted by relevance
/linux-6.1.9/fs/ubifs/ |
D | master.c | 199 if (c->zroot.lnum >= c->leb_cnt || c->zroot.lnum < c->main_first || in validate_master() 200 c->zroot.offs >= c->leb_size || c->zroot.offs & 7) { in validate_master() 205 if (c->zroot.len < c->ranges[UBIFS_IDX_NODE].min_len || in validate_master() 206 c->zroot.len > c->ranges[UBIFS_IDX_NODE].max_len) { in validate_master() 355 c->zroot.lnum = le32_to_cpu(c->mst_node->root_lnum); in ubifs_read_master() 356 c->zroot.offs = le32_to_cpu(c->mst_node->root_offs); in ubifs_read_master() 357 c->zroot.len = le32_to_cpu(c->mst_node->root_len); in ubifs_read_master() 381 ubifs_copy_hash(c, c->mst_node->hash_root_idx, c->zroot.hash); in ubifs_read_master() 421 err = dbg_old_index_check_init(c, &c->zroot); in ubifs_read_master() 456 ubifs_copy_hash(c, c->zroot.hash, c->mst_node->hash_root_idx); in ubifs_write_master()
|
D | commit.c | 69 if (c->zroot.znode && ubifs_zn_dirty(c->zroot.znode)) in nothing_to_commit() 100 struct ubifs_zbranch zroot; in do_commit() local 134 err = ubifs_tnc_start_commit(c, &zroot); in do_commit() 157 err = dbg_check_old_index(c, &zroot); in do_commit() 163 c->mst_node->root_lnum = cpu_to_le32(zroot.lnum); in do_commit() 164 c->mst_node->root_offs = cpu_to_le32(zroot.offs); in do_commit() 165 c->mst_node->root_len = cpu_to_le32(zroot.len); in do_commit() 514 int dbg_old_index_check_init(struct ubifs_info *c, struct ubifs_zbranch *zroot) in dbg_old_index_check_init() argument 520 d->old_zroot = *zroot; in dbg_old_index_check_init() 553 int dbg_check_old_index(struct ubifs_info *c, struct ubifs_zbranch *zroot) in dbg_check_old_index() argument [all …]
|
D | shrinker.c | 67 if (!c->zroot.znode || atomic_long_read(&c->clean_zn_cnt) == 0) in shrink_tnc() 80 znode = ubifs_tnc_levelorder_next(c, c->zroot.znode, NULL); in shrink_tnc() 114 c->zroot.znode = NULL; in shrink_tnc() 123 if (unlikely(!c->zroot.znode)) in shrink_tnc() 127 znode = ubifs_tnc_levelorder_next(c, c->zroot.znode, znode); in shrink_tnc()
|
D | tnc.c | 120 if (c->zroot.len) in insert_old_idx_znode() 121 return insert_old_idx(c, c->zroot.lnum, in insert_old_idx_znode() 122 c->zroot.offs); in insert_old_idx_znode() 151 if (c->zroot.len) { in ins_clr_old_idx_znode() 152 err = insert_old_idx(c, c->zroot.lnum, c->zroot.offs); in ins_clr_old_idx_znode() 155 c->zroot.lnum = 0; in ins_clr_old_idx_znode() 156 c->zroot.offs = 0; in ins_clr_old_idx_znode() 157 c->zroot.len = 0; in ins_clr_old_idx_znode() 1095 ubifs_assert(c, c->zroot.znode); in dirty_cow_bottom_up() 1097 if (c->zroot.znode->level > BOTTOM_UP_HEIGHT) { in dirty_cow_bottom_up() [all …]
|
D | tnc_commit.c | 74 c->zroot.lnum = lnum; in make_idx_node() 75 c->zroot.offs = offs; in make_idx_node() 76 c->zroot.len = len; in make_idx_node() 77 ubifs_copy_hash(c, hash, c->zroot.hash); in make_idx_node() 487 c->zroot.lnum = lnum; in layout_in_empty_space() 488 c->zroot.offs = offs; in layout_in_empty_space() 489 c->zroot.len = len; in layout_in_empty_space() 647 c->cnext = find_first_dirty(c->zroot.znode); in get_znodes_to_commit() 758 int ubifs_tnc_start_commit(struct ubifs_info *c, struct ubifs_zbranch *zroot) in ubifs_tnc_start_commit() argument 784 memcpy(zroot, &c->zroot, sizeof(struct ubifs_zbranch)); in ubifs_tnc_start_commit() [all …]
|
D | debug.c | 880 zbr = &c->zroot; in ubifs_dump_znode() 949 znode = ubifs_tnc_levelorder_next(c, c->zroot.znode, NULL); in ubifs_dump_tnc() 958 znode = ubifs_tnc_levelorder_next(c, c->zroot.znode, znode); in ubifs_dump_tnc() 1392 if (zbr != &c->zroot) { in dbg_check_znode() 1499 if (!c->zroot.znode) in dbg_check_tnc() 1502 znode = ubifs_tnc_postorder_first(c->zroot.znode); in dbg_check_tnc() 1508 zbr = &c->zroot; in dbg_check_tnc() 1592 if (!c->zroot.znode) { in dbg_walk_index() 1593 c->zroot.znode = ubifs_load_znode(c, &c->zroot, NULL, 0); in dbg_walk_index() 1594 if (IS_ERR(c->zroot.znode)) { in dbg_walk_index() [all …]
|
D | debug.h | 272 int dbg_old_index_check_init(struct ubifs_info *c, struct ubifs_zbranch *zroot); 273 int dbg_check_old_index(struct ubifs_info *c, struct ubifs_zbranch *zroot);
|
D | ubifs.h | 1330 struct ubifs_zbranch zroot; member 1908 int ubifs_tnc_start_commit(struct ubifs_info *c, struct ubifs_zbranch *zroot);
|