Home
last modified time | relevance | path

Searched refs:zroot (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.4/fs/ubifs/
Dmaster.c202 if (c->zroot.lnum >= c->leb_cnt || c->zroot.lnum < c->main_first || in validate_master()
203 c->zroot.offs >= c->leb_size || c->zroot.offs & 7) { in validate_master()
208 if (c->zroot.len < c->ranges[UBIFS_IDX_NODE].min_len || in validate_master()
209 c->zroot.len > c->ranges[UBIFS_IDX_NODE].max_len) { in validate_master()
358 c->zroot.lnum = le32_to_cpu(c->mst_node->root_lnum); in ubifs_read_master()
359 c->zroot.offs = le32_to_cpu(c->mst_node->root_offs); in ubifs_read_master()
360 c->zroot.len = le32_to_cpu(c->mst_node->root_len); in ubifs_read_master()
384 ubifs_copy_hash(c, c->mst_node->hash_root_idx, c->zroot.hash); in ubifs_read_master()
424 err = dbg_old_index_check_init(c, &c->zroot); in ubifs_read_master()
459 ubifs_copy_hash(c, c->zroot.hash, c->mst_node->hash_root_idx); in ubifs_write_master()
Dshrinker.c67 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()
Dcommit.c69 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 …]
Dtnc.c120 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()
1096 ubifs_assert(c, c->zroot.znode); in dirty_cow_bottom_up()
1098 if (c->zroot.znode->level > BOTTOM_UP_HEIGHT) { in dirty_cow_bottom_up()
[all …]
Dtnc_commit.c74 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()
467 c->zroot.lnum = lnum; in layout_in_empty_space()
468 c->zroot.offs = offs; in layout_in_empty_space()
469 c->zroot.len = len; in layout_in_empty_space()
627 c->cnext = find_first_dirty(c->zroot.znode); in get_znodes_to_commit()
738 int ubifs_tnc_start_commit(struct ubifs_info *c, struct ubifs_zbranch *zroot) in ubifs_tnc_start_commit() argument
764 memcpy(zroot, &c->zroot, sizeof(struct ubifs_zbranch)); in ubifs_tnc_start_commit()
[all …]
Ddebug.c859 zbr = &c->zroot; in ubifs_dump_znode()
928 znode = ubifs_tnc_levelorder_next(c, c->zroot.znode, NULL); in ubifs_dump_tnc()
937 znode = ubifs_tnc_levelorder_next(c, c->zroot.znode, znode); in ubifs_dump_tnc()
1370 if (zbr != &c->zroot) { in dbg_check_znode()
1477 if (!c->zroot.znode) in dbg_check_tnc()
1480 znode = ubifs_tnc_postorder_first(c->zroot.znode); in dbg_check_tnc()
1486 zbr = &c->zroot; in dbg_check_tnc()
1570 if (!c->zroot.znode) { in dbg_walk_index()
1571 c->zroot.znode = ubifs_load_znode(c, &c->zroot, NULL, 0); in dbg_walk_index()
1572 if (IS_ERR(c->zroot.znode)) { in dbg_walk_index()
[all …]
Ddebug.h273 int dbg_old_index_check_init(struct ubifs_info *c, struct ubifs_zbranch *zroot);
274 int dbg_check_old_index(struct ubifs_info *c, struct ubifs_zbranch *zroot);
Dubifs.h1300 struct ubifs_zbranch zroot; member
1876 int ubifs_tnc_start_commit(struct ubifs_info *c, struct ubifs_zbranch *zroot);