Lines Matching refs:znode
57 /* Global clean znode counter (for all mounted UBIFS instances) */
73 struct ubifs_znode *znode, *zprev;
79 if (!c->zroot.znode || atomic_long_read(&c->clean_zn_cnt) == 0)
84 * to destroy large sub-trees. Indeed, if a znode is old, then all its
92 znode = ubifs_tnc_levelorder_next(c->zroot.znode, NULL);
93 while (znode && total_freed < nr &&
98 * If the znode is clean, but it is in the 'c->cnext' list, this
99 * means that this znode has just been written to flash as a
115 if (znode->cnext) {
121 } else if (!ubifs_zn_dirty(znode) &&
122 abs(time - znode->time) >= age) {
123 if (znode->parent)
124 znode->parent->zbranch[znode->iip].znode = NULL;
126 c->zroot.znode = NULL;
128 freed = ubifs_destroy_tnc_subtree(znode);
133 znode = zprev;
136 if (unlikely(!c->zroot.znode))
139 zprev = znode;
140 znode = ubifs_tnc_levelorder_next(c->zroot.znode, znode);