Home
last modified time | relevance | path

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

/linux-3.4.99/fs/ubifs/
Dtnc.c118 int insert_old_idx_znode(struct ubifs_info *c, struct ubifs_znode *znode) in insert_old_idx_znode() argument
120 if (znode->parent) { in insert_old_idx_znode()
123 zbr = &znode->parent->zbranch[znode->iip]; in insert_old_idx_znode()
141 struct ubifs_znode *znode) in ins_clr_old_idx_znode() argument
145 if (znode->parent) { in ins_clr_old_idx_znode()
148 zbr = &znode->parent->zbranch[znode->iip]; in ins_clr_old_idx_znode()
213 struct ubifs_znode *znode) in copy_znode() argument
221 memcpy(zn, znode, c->max_znode_sz); in copy_znode()
226 ubifs_assert(!ubifs_zn_obsolete(znode)); in copy_znode()
227 __set_bit(OBSOLETE_ZNODE, &znode->flags); in copy_znode()
[all …]
Dtnc_misc.c41 struct ubifs_znode *znode) in ubifs_tnc_levelorder_next() argument
48 if (unlikely(!znode)) in ubifs_tnc_levelorder_next()
51 if (unlikely(znode == zr)) { in ubifs_tnc_levelorder_next()
52 if (znode->level == 0) in ubifs_tnc_levelorder_next()
57 level = znode->level; in ubifs_tnc_levelorder_next()
59 iip = znode->iip; in ubifs_tnc_levelorder_next()
61 ubifs_assert(znode->level <= zr->level); in ubifs_tnc_levelorder_next()
67 while (znode->parent != zr && iip >= znode->parent->child_cnt) { in ubifs_tnc_levelorder_next()
68 znode = znode->parent; in ubifs_tnc_levelorder_next()
69 iip = znode->iip; in ubifs_tnc_levelorder_next()
[all …]
Dtnc_commit.c38 struct ubifs_znode *znode, int lnum, int offs, int len) in make_idx_node() argument
45 idx->child_cnt = cpu_to_le16(znode->child_cnt); in make_idx_node()
46 idx->level = cpu_to_le16(znode->level); in make_idx_node()
47 for (i = 0; i < znode->child_cnt; i++) { in make_idx_node()
49 struct ubifs_zbranch *zbr = &znode->zbranch[i]; in make_idx_node()
57 dbg_dump_znode(c, znode); in make_idx_node()
58 if (zbr->znode) in make_idx_node()
59 dbg_dump_znode(c, zbr->znode); in make_idx_node()
65 znode->lnum = lnum; in make_idx_node()
66 znode->offs = offs; in make_idx_node()
[all …]
Dshrinker.c73 struct ubifs_znode *znode, *zprev; in shrink_tnc() local
79 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()
93 while (znode && total_freed < nr && in shrink_tnc()
115 if (znode->cnext) { in shrink_tnc()
121 } else if (!ubifs_zn_dirty(znode) && in shrink_tnc()
122 abs(time - znode->time) >= age) { in shrink_tnc()
123 if (znode->parent) in shrink_tnc()
124 znode->parent->zbranch[znode->iip].znode = NULL; in shrink_tnc()
126 c->zroot.znode = NULL; in shrink_tnc()
[all …]
Dmisc.h36 static inline int ubifs_zn_dirty(const struct ubifs_znode *znode) in ubifs_zn_dirty() argument
38 return !!test_bit(DIRTY_ZNODE, &znode->flags); in ubifs_zn_dirty()
47 static inline int ubifs_zn_obsolete(const struct ubifs_znode *znode) in ubifs_zn_obsolete() argument
49 return !!test_bit(OBSOLETE_ZNODE, &znode->flags); in ubifs_zn_obsolete()
59 static inline int ubifs_zn_cow(const struct ubifs_znode *znode) in ubifs_zn_cow() argument
61 return !!test_bit(COW_ZNODE, &znode->flags); in ubifs_zn_cow()
85 ubifs_tnc_find_child(struct ubifs_znode *znode, int start) in ubifs_tnc_find_child() argument
87 while (start < znode->child_cnt) { in ubifs_tnc_find_child()
88 if (znode->zbranch[start].znode) in ubifs_tnc_find_child()
89 return znode->zbranch[start].znode; in ubifs_tnc_find_child()
Ddebug.c925 const struct ubifs_znode *znode) in dbg_dump_znode() argument
932 if (znode->parent) in dbg_dump_znode()
933 zbr = &znode->parent->zbranch[znode->iip]; in dbg_dump_znode()
938 " child_cnt %d flags %lx\n", znode, zbr->lnum, zbr->offs, in dbg_dump_znode()
939 zbr->len, znode->parent, znode->iip, znode->level, in dbg_dump_znode()
940 znode->child_cnt, znode->flags); in dbg_dump_znode()
942 if (znode->child_cnt <= 0 || znode->child_cnt > c->fanout) { in dbg_dump_znode()
948 for (n = 0; n < znode->child_cnt; n++) { in dbg_dump_znode()
949 zbr = &znode->zbranch[n]; in dbg_dump_znode()
950 if (znode->level > 0) in dbg_dump_znode()
[all …]
Dubifs.h743 struct ubifs_znode *znode; member
1606 int insert_old_idx_znode(struct ubifs_info *c, struct ubifs_znode *znode);
1612 struct ubifs_znode *znode);
1614 const struct ubifs_znode *znode,
1616 struct ubifs_znode *ubifs_tnc_postorder_first(struct ubifs_znode *znode);
1617 struct ubifs_znode *ubifs_tnc_postorder_next(struct ubifs_znode *znode);
Ddebug.h30 struct ubifs_znode *znode, void *priv);
274 const struct ubifs_znode *znode);
402 const struct ubifs_znode *znode) { return; } in dbg_dump_znode() argument
Dcommit.c81 if (c->zroot.znode && ubifs_zn_dirty(c->zroot.znode)) in nothing_to_commit()