Lines Matching refs:zn
46 struct ubifs_znode *zn; in ubifs_tnc_levelorder_next() local
94 zn = ubifs_tnc_find_child(znode->parent, iip + 1); in ubifs_tnc_levelorder_next()
95 if (!zn) { in ubifs_tnc_levelorder_next()
102 while (zn->level != level) { in ubifs_tnc_levelorder_next()
103 znode = zn; in ubifs_tnc_levelorder_next()
104 zn = ubifs_tnc_find_child(zn, 0); in ubifs_tnc_levelorder_next()
105 if (!zn) { in ubifs_tnc_levelorder_next()
115 if (zn) { in ubifs_tnc_levelorder_next()
116 ubifs_assert(c, zn->level >= 0); in ubifs_tnc_levelorder_next()
117 return zn; in ubifs_tnc_levelorder_next()
209 struct ubifs_znode *zn; in ubifs_tnc_postorder_next() local
216 zn = ubifs_tnc_find_child(znode->parent, znode->iip + 1); in ubifs_tnc_postorder_next()
217 if (!zn) in ubifs_tnc_postorder_next()
222 return ubifs_tnc_postorder_first(zn); in ubifs_tnc_postorder_next()
236 struct ubifs_znode *zn = ubifs_tnc_postorder_first(znode); in ubifs_destroy_tnc_subtree() local
240 ubifs_assert(c, zn); in ubifs_destroy_tnc_subtree()
242 for (n = 0; n < zn->child_cnt; n++) { in ubifs_destroy_tnc_subtree()
243 if (!zn->zbranch[n].znode) in ubifs_destroy_tnc_subtree()
246 if (zn->level > 0 && in ubifs_destroy_tnc_subtree()
247 !ubifs_zn_dirty(zn->zbranch[n].znode)) in ubifs_destroy_tnc_subtree()
251 kfree(zn->zbranch[n].znode); in ubifs_destroy_tnc_subtree()
254 if (zn == znode) { in ubifs_destroy_tnc_subtree()
255 if (!ubifs_zn_dirty(zn)) in ubifs_destroy_tnc_subtree()
257 kfree(zn); in ubifs_destroy_tnc_subtree()
261 zn = ubifs_tnc_postorder_next(c, zn); in ubifs_destroy_tnc_subtree()