Home
last modified time | relevance | path

Searched refs:znode (Results 1 – 6 of 6) sorted by relevance

/external/u-boot/fs/ubifs/
Dtnc.c112 int insert_old_idx_znode(struct ubifs_info *c, struct ubifs_znode *znode) in insert_old_idx_znode() argument
114 if (znode->parent) { in insert_old_idx_znode()
117 zbr = &znode->parent->zbranch[znode->iip]; in insert_old_idx_znode()
135 struct ubifs_znode *znode) in ins_clr_old_idx_znode() argument
139 if (znode->parent) { in ins_clr_old_idx_znode()
142 zbr = &znode->parent->zbranch[znode->iip]; in ins_clr_old_idx_znode()
191 struct ubifs_znode *znode) in copy_znode() argument
199 memcpy(zn, znode, c->max_znode_sz); in copy_znode()
204 ubifs_assert(!ubifs_zn_obsolete(znode)); in copy_znode()
205 __set_bit(OBSOLETE_ZNODE, &znode->flags); in copy_znode()
[all …]
Dtnc_misc.c32 struct ubifs_znode *znode) in ubifs_tnc_levelorder_next() argument
39 if (unlikely(!znode)) in ubifs_tnc_levelorder_next()
42 if (unlikely(znode == zr)) { in ubifs_tnc_levelorder_next()
43 if (znode->level == 0) in ubifs_tnc_levelorder_next()
48 level = znode->level; in ubifs_tnc_levelorder_next()
50 iip = znode->iip; in ubifs_tnc_levelorder_next()
52 ubifs_assert(znode->level <= zr->level); in ubifs_tnc_levelorder_next()
58 while (znode->parent != zr && iip >= znode->parent->child_cnt) { in ubifs_tnc_levelorder_next()
59 znode = znode->parent; in ubifs_tnc_levelorder_next()
60 iip = znode->iip; in ubifs_tnc_levelorder_next()
[all …]
Ddebug.c858 const struct ubifs_znode *znode) in ubifs_dump_znode() argument
865 if (znode->parent) in ubifs_dump_znode()
866 zbr = &znode->parent->zbranch[znode->iip]; in ubifs_dump_znode()
871 znode, zbr->lnum, zbr->offs, zbr->len, znode->parent, znode->iip, in ubifs_dump_znode()
872 znode->level, znode->child_cnt, znode->flags); in ubifs_dump_znode()
874 if (znode->child_cnt <= 0 || znode->child_cnt > c->fanout) { in ubifs_dump_znode()
880 for (n = 0; n < znode->child_cnt; n++) { in ubifs_dump_znode()
881 zbr = &znode->zbranch[n]; in ubifs_dump_znode()
882 if (znode->level > 0) in ubifs_dump_znode()
884 n, zbr->znode, zbr->lnum, zbr->offs, zbr->len, in ubifs_dump_znode()
[all …]
Dmisc.h24 static inline int ubifs_zn_dirty(const struct ubifs_znode *znode) in ubifs_zn_dirty() argument
26 return !!test_bit(DIRTY_ZNODE, &znode->flags); in ubifs_zn_dirty()
35 static inline int ubifs_zn_obsolete(const struct ubifs_znode *znode) in ubifs_zn_obsolete() argument
37 return !!test_bit(OBSOLETE_ZNODE, &znode->flags); in ubifs_zn_obsolete()
47 static inline int ubifs_zn_cow(const struct ubifs_znode *znode) in ubifs_zn_cow() argument
49 return !!test_bit(COW_ZNODE, &znode->flags); in ubifs_zn_cow()
73 ubifs_tnc_find_child(struct ubifs_znode *znode, int start) in ubifs_tnc_find_child() argument
75 while (start < znode->child_cnt) { in ubifs_tnc_find_child()
76 if (znode->zbranch[start].znode) in ubifs_tnc_find_child()
77 return znode->zbranch[start].znode; in ubifs_tnc_find_child()
Dubifs.h1343 struct ubifs_znode *znode; member
2216 int insert_old_idx_znode(struct ubifs_info *c, struct ubifs_znode *znode);
2222 struct ubifs_znode *znode);
2224 const struct ubifs_znode *znode,
2226 struct ubifs_znode *ubifs_tnc_postorder_first(struct ubifs_znode *znode);
2227 struct ubifs_znode *ubifs_tnc_postorder_next(struct ubifs_znode *znode);
Ddebug.h18 struct ubifs_znode *znode, void *priv);
321 const struct ubifs_znode *znode);