Searched refs:znode (Results 1 – 9 of 9) sorted by relevance
/linux-6.1.9/fs/ubifs/ |
D | tnc.c | 111 int insert_old_idx_znode(struct ubifs_info *c, struct ubifs_znode *znode) in insert_old_idx_znode() argument 113 if (znode->parent) { in insert_old_idx_znode() 116 zbr = &znode->parent->zbranch[znode->iip]; in insert_old_idx_znode() 134 struct ubifs_znode *znode) in ins_clr_old_idx_znode() argument 138 if (znode->parent) { in ins_clr_old_idx_znode() 141 zbr = &znode->parent->zbranch[znode->iip]; in ins_clr_old_idx_znode() 190 struct ubifs_znode *znode) in copy_znode() argument 194 zn = kmemdup(znode, c->max_znode_sz, GFP_NOFS); in copy_znode() 202 ubifs_assert(c, !ubifs_zn_obsolete(znode)); in copy_znode() 203 __set_bit(OBSOLETE_ZNODE, &znode->flags); in copy_znode() [all …]
|
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 …]
|
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 …]
|
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 …]
|
D | debug.c | 870 const struct ubifs_znode *znode) in ubifs_dump_znode() argument 877 if (znode->parent) in ubifs_dump_znode() 878 zbr = &znode->parent->zbranch[znode->iip]; in ubifs_dump_znode() 883 znode, zbr->lnum, zbr->offs, zbr->len, znode->parent, znode->iip, in ubifs_dump_znode() 884 znode->level, znode->child_cnt, znode->flags); in ubifs_dump_znode() 886 if (znode->child_cnt <= 0 || znode->child_cnt > c->fanout) { in ubifs_dump_znode() 892 for (n = 0; n < znode->child_cnt; n++) { in ubifs_dump_znode() 893 zbr = &znode->zbranch[n]; in ubifs_dump_znode() 894 if (znode->level > 0) in ubifs_dump_znode() 896 n, zbr->znode, zbr->lnum, zbr->offs, zbr->len, in ubifs_dump_znode() [all …]
|
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()
|
D | debug.h | 18 struct ubifs_znode *znode, void *priv); 256 const struct ubifs_znode *znode);
|
D | ubifs.h | 757 struct ubifs_znode *znode; member 1885 int insert_old_idx_znode(struct ubifs_info *c, struct ubifs_znode *znode); 1892 struct ubifs_znode *znode); 1894 const struct ubifs_znode *znode, 1896 struct ubifs_znode *ubifs_tnc_postorder_first(struct ubifs_znode *znode); 1898 struct ubifs_znode *znode);
|
D | commit.c | 69 if (c->zroot.znode && ubifs_zn_dirty(c->zroot.znode)) in nothing_to_commit()
|