Searched refs:znode (Results 1 – 9 of 9) sorted by relevance
/fs/ubifs/ |
D | tnc.c | 123 int insert_old_idx_znode(struct ubifs_info *c, struct ubifs_znode *znode) in insert_old_idx_znode() argument 125 if (znode->parent) { in insert_old_idx_znode() 128 zbr = &znode->parent->zbranch[znode->iip]; in insert_old_idx_znode() 146 struct ubifs_znode *znode) in ins_clr_old_idx_znode() argument 150 if (znode->parent) { in ins_clr_old_idx_znode() 153 zbr = &znode->parent->zbranch[znode->iip]; in ins_clr_old_idx_znode() 202 struct ubifs_znode *znode) in copy_znode() argument 206 zn = kmemdup(znode, c->max_znode_sz, GFP_NOFS); in copy_znode() 214 ubifs_assert(!ubifs_zn_obsolete(znode)); in copy_znode() 215 __set_bit(OBSOLETE_ZNODE, &znode->flags); in copy_znode() [all …]
|
D | tnc_misc.c | 41 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 …]
|
D | tnc_commit.c | 38 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 ubifs_dump_znode(c, znode); in make_idx_node() 58 if (zbr->znode) in make_idx_node() 59 ubifs_dump_znode(c, zbr->znode); in make_idx_node() 64 znode->lnum = lnum; in make_idx_node() 65 znode->offs = offs; in make_idx_node() [all …]
|
D | shrinker.c | 73 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 …]
|
D | debug.c | 851 const struct ubifs_znode *znode) in ubifs_dump_znode() argument 858 if (znode->parent) in ubifs_dump_znode() 859 zbr = &znode->parent->zbranch[znode->iip]; in ubifs_dump_znode() 864 znode, zbr->lnum, zbr->offs, zbr->len, znode->parent, znode->iip, in ubifs_dump_znode() 865 znode->level, znode->child_cnt, znode->flags); in ubifs_dump_znode() 867 if (znode->child_cnt <= 0 || znode->child_cnt > c->fanout) { in ubifs_dump_znode() 873 for (n = 0; n < znode->child_cnt; n++) { in ubifs_dump_znode() 874 zbr = &znode->zbranch[n]; in ubifs_dump_znode() 875 if (znode->level > 0) in ubifs_dump_znode() 877 n, zbr->znode, zbr->lnum, zbr->offs, zbr->len, in ubifs_dump_znode() [all …]
|
D | misc.h | 36 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()
|
D | ubifs.h | 729 struct ubifs_znode *znode; member 1598 int insert_old_idx_znode(struct ubifs_info *c, struct ubifs_znode *znode); 1604 struct ubifs_znode *znode); 1606 const struct ubifs_znode *znode, 1608 struct ubifs_znode *ubifs_tnc_postorder_first(struct ubifs_znode *znode); 1609 struct ubifs_znode *ubifs_tnc_postorder_next(struct ubifs_znode *znode);
|
D | debug.h | 30 struct ubifs_znode *znode, void *priv); 267 const struct ubifs_znode *znode);
|
D | commit.c | 81 if (c->zroot.znode && ubifs_zn_dirty(c->zroot.znode)) in nothing_to_commit()
|