Home
last modified time | relevance | path

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

/linux-2.6.39/fs/ubifs/
Dshrinker.c79 if (!c->zroot.znode || atomic_long_read(&c->clean_zn_cnt) == 0) in shrink_tnc()
92 znode = ubifs_tnc_levelorder_next(c->zroot.znode, NULL); in shrink_tnc()
126 c->zroot.znode = NULL; in shrink_tnc()
136 if (unlikely(!c->zroot.znode)) in shrink_tnc()
140 znode = ubifs_tnc_levelorder_next(c->zroot.znode, znode); in shrink_tnc()
Dcommit.c81 if (c->zroot.znode && test_bit(DIRTY_ZNODE, &c->zroot.znode->flags)) in nothing_to_commit()
112 struct ubifs_zbranch zroot; in do_commit() local
146 err = ubifs_tnc_start_commit(c, &zroot); in do_commit()
173 err = dbg_check_old_index(c, &zroot); in do_commit()
180 c->mst_node->root_lnum = cpu_to_le32(zroot.lnum); in do_commit()
181 c->mst_node->root_offs = cpu_to_le32(zroot.offs); in do_commit()
182 c->mst_node->root_len = cpu_to_le32(zroot.len); in do_commit()
528 int dbg_old_index_check_init(struct ubifs_info *c, struct ubifs_zbranch *zroot) in dbg_old_index_check_init() argument
534 d->old_zroot = *zroot; in dbg_old_index_check_init()
567 int dbg_check_old_index(struct ubifs_info *c, struct ubifs_zbranch *zroot) in dbg_check_old_index() argument
[all …]
Dmaster.c126 if (c->zroot.lnum >= c->leb_cnt || c->zroot.lnum < c->main_first || in validate_master()
127 c->zroot.offs >= c->leb_size || c->zroot.offs & 7) { in validate_master()
132 if (c->zroot.len < c->ranges[UBIFS_IDX_NODE].min_len || in validate_master()
133 c->zroot.len > c->ranges[UBIFS_IDX_NODE].max_len) { in validate_master()
282 c->zroot.lnum = le32_to_cpu(c->mst_node->root_lnum); in ubifs_read_master()
283 c->zroot.offs = le32_to_cpu(c->mst_node->root_offs); in ubifs_read_master()
284 c->zroot.len = le32_to_cpu(c->mst_node->root_len); in ubifs_read_master()
346 err = dbg_old_index_check_init(c, &c->zroot); in ubifs_read_master()
Dtnc.c127 if (c->zroot.len) in insert_old_idx_znode()
128 return insert_old_idx(c, c->zroot.lnum, in insert_old_idx_znode()
129 c->zroot.offs); in insert_old_idx_znode()
158 if (c->zroot.len) { in ins_clr_old_idx_znode()
159 err = insert_old_idx(c, c->zroot.lnum, c->zroot.offs); in ins_clr_old_idx_znode()
162 c->zroot.lnum = 0; in ins_clr_old_idx_znode()
163 c->zroot.offs = 0; in ins_clr_old_idx_znode()
164 c->zroot.len = 0; in ins_clr_old_idx_znode()
1103 ubifs_assert(c->zroot.znode); in dirty_cow_bottom_up()
1105 if (c->zroot.znode->level > BOTTOM_UP_HEIGHT) { in dirty_cow_bottom_up()
[all …]
Dtnc_commit.c81 c->zroot.lnum = lnum; in make_idx_node()
82 c->zroot.offs = offs; in make_idx_node()
83 c->zroot.len = len; in make_idx_node()
474 c->zroot.lnum = lnum; in layout_in_empty_space()
475 c->zroot.offs = offs; in layout_in_empty_space()
476 c->zroot.len = len; in layout_in_empty_space()
655 c->cnext = find_first_dirty(c->zroot.znode); in get_znodes_to_commit()
764 int ubifs_tnc_start_commit(struct ubifs_info *c, struct ubifs_zbranch *zroot) in ubifs_tnc_start_commit() argument
790 memcpy(zroot, &c->zroot, sizeof(struct ubifs_zbranch)); in ubifs_tnc_start_commit()
1094 dbg_cmt("TNC height is %d", c->zroot.znode->level + 1); in ubifs_tnc_end_commit()
Ddebug.h286 int dbg_old_index_check_init(struct ubifs_info *c, struct ubifs_zbranch *zroot);
287 int dbg_check_old_index(struct ubifs_info *c, struct ubifs_zbranch *zroot);
453 struct ubifs_zbranch *zroot) { return 0; } in dbg_old_index_check_init() argument
456 struct ubifs_zbranch *zroot) { return 0; } in dbg_check_old_index() argument
Ddebug.c862 zbr = &c->zroot; in dbg_dump_znode()
932 znode = ubifs_tnc_levelorder_next(c->zroot.znode, NULL); in dbg_dump_tnc()
941 znode = ubifs_tnc_levelorder_next(c->zroot.znode, znode); in dbg_dump_tnc()
1365 if (zbr != &c->zroot) { in dbg_check_znode()
1472 if (!c->zroot.znode) in dbg_check_tnc()
1475 znode = ubifs_tnc_postorder_first(c->zroot.znode); in dbg_check_tnc()
1481 zbr = &c->zroot; in dbg_check_tnc()
1565 if (!c->zroot.znode) { in dbg_walk_index()
1566 c->zroot.znode = ubifs_load_znode(c, &c->zroot, NULL, 0); in dbg_walk_index()
1567 if (IS_ERR(c->zroot.znode)) { in dbg_walk_index()
[all …]
Dubifs.h1247 struct ubifs_zbranch zroot; member
1608 int ubifs_tnc_start_commit(struct ubifs_info *c, struct ubifs_zbranch *zroot);