Searched refs:znode (Results 1 – 8 of 8) sorted by relevance
/linux/fs/ubifs/ |
H A D | tnc.c | 119 int insert_old_idx_znode(struct ubifs_info *c, struct ubifs_znode *znode) in insert_old_idx_znode() argument 121 if (znode->parent) { in insert_old_idx_znode() 124 zbr = &znode->parent->zbranch[znode->iip]; in insert_old_idx_znode() 142 struct ubifs_znode *znode) in ins_clr_old_idx_znode() argument 146 if (znode->parent) { in ins_clr_old_idx_znode() 149 zbr = &znode->parent->zbranch[znode->iip]; in ins_clr_old_idx_znode() 198 struct ubifs_znode *znode) in copy_znode() argument 202 zn = kmemdup(znode, c->max_znode_sz, GFP_NOFS); in copy_znode() 250 if (child->znode) in replace_znode() 251 child->znode->parent = new_zn; in replace_znode() [all …]
|
H A D | tnc_misc.c | 31 struct ubifs_znode *znode) in ubifs_tnc_levelorder_next() argument 38 if (unlikely(!znode)) in ubifs_tnc_levelorder_next() 41 if (unlikely(znode == zr)) { in ubifs_tnc_levelorder_next() 42 if (znode->level == 0) in ubifs_tnc_levelorder_next() 47 level = znode->level; in ubifs_tnc_levelorder_next() 49 iip = znode->iip; in ubifs_tnc_levelorder_next() 51 ubifs_assert(c, znode->level <= zr->level); in ubifs_tnc_levelorder_next() 57 while (znode->parent != zr && iip >= znode->parent->child_cnt) { in ubifs_tnc_levelorder_next() 58 znode = znode->parent; in ubifs_tnc_levelorder_next() 59 iip = znode->iip; in ubifs_tnc_levelorder_next() [all …]
|
H A D | tnc_commit.c | 26 struct ubifs_znode *znode, int lnum, int offs, int len) in make_idx_node() argument 34 idx->child_cnt = cpu_to_le16(znode->child_cnt); in make_idx_node() 35 idx->level = cpu_to_le16(znode->level); in make_idx_node() 36 for (i = 0; i < znode->child_cnt; i++) { in make_idx_node() 38 struct ubifs_zbranch *zbr = &znode->zbranch[i]; in make_idx_node() 47 ubifs_dump_znode(c, znode); in make_idx_node() 48 if (zbr->znode) in make_idx_node() 49 ubifs_dump_znode(c, zbr->znode); in make_idx_node() 57 znode->lnum = lnum; in make_idx_node() 58 znode->offs = offs; in make_idx_node() [all …]
|
H A D | shrinker.c | 61 struct ubifs_znode *znode, *zprev; in shrink_tnc() local 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() 81 while (znode && total_freed < nr && in shrink_tnc() 103 if (znode->cnext) { in shrink_tnc() 109 } else if (!ubifs_zn_dirty(znode) && in shrink_tnc() 110 abs(time - znode->time) >= age) { in shrink_tnc() 111 if (znode->parent) in shrink_tnc() 112 znode->parent->zbranch[znode->iip].znode = NULL; in shrink_tnc() 114 c->zroot.znode = NULL; in shrink_tnc() [all …]
|
H A D | misc.h | 24 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()
|
H A D | debug.h | 18 struct ubifs_znode *znode, void *priv); 257 const struct ubifs_znode *znode);
|
H A D | ubifs.h | 750 struct ubifs_znode *znode; member 1884 int insert_old_idx_znode(struct ubifs_info *c, struct ubifs_znode *znode); 1891 struct ubifs_znode *znode); 1893 const struct ubifs_znode *znode, 1895 struct ubifs_znode *ubifs_tnc_postorder_first(struct ubifs_znode *znode); 1897 struct ubifs_znode *znode);
|
H A D | commit.c | 69 if (c->zroot.znode && ubifs_zn_dirty(c->zroot.znode)) in nothing_to_commit()
|