Lines Matching defs:znode
45 /* Global clean znode counter (for all mounted UBIFS instances) */
61 struct ubifs_znode *znode, *zprev;
67 if (!c->zroot.znode || atomic_long_read(&c->clean_zn_cnt) == 0)
72 * to destroy large sub-trees. Indeed, if a znode is old, then all its
80 znode = ubifs_tnc_levelorder_next(c, c->zroot.znode, NULL);
81 while (znode && total_freed < nr &&
86 * If the znode is clean, but it is in the 'c->cnext' list, this
87 * means that this znode has just been written to flash as a
103 if (znode->cnext) {
109 } else if (!ubifs_zn_dirty(znode) &&
110 abs(time - znode->time) >= age) {
111 if (znode->parent)
112 znode->parent->zbranch[znode->iip].znode = NULL;
114 c->zroot.znode = NULL;
116 freed = ubifs_destroy_tnc_subtree(c, znode);
120 znode = zprev;
123 if (unlikely(!c->zroot.znode))
126 zprev = znode;
127 znode = ubifs_tnc_levelorder_next(c, c->zroot.znode, znode);
273 * Due to the way UBIFS updates the clean znode counter it may