Lines Matching refs:zn

34 	struct ubifs_znode *zn;  in ubifs_tnc_levelorder_next()  local
82 zn = ubifs_tnc_find_child(znode->parent, iip + 1); in ubifs_tnc_levelorder_next()
83 if (!zn) { in ubifs_tnc_levelorder_next()
90 while (zn->level != level) { in ubifs_tnc_levelorder_next()
91 znode = zn; in ubifs_tnc_levelorder_next()
92 zn = ubifs_tnc_find_child(zn, 0); in ubifs_tnc_levelorder_next()
93 if (!zn) { in ubifs_tnc_levelorder_next()
103 if (zn) { in ubifs_tnc_levelorder_next()
104 ubifs_assert(c, zn->level >= 0); in ubifs_tnc_levelorder_next()
105 return zn; in ubifs_tnc_levelorder_next()
197 struct ubifs_znode *zn; in ubifs_tnc_postorder_next() local
204 zn = ubifs_tnc_find_child(znode->parent, znode->iip + 1); in ubifs_tnc_postorder_next()
205 if (!zn) in ubifs_tnc_postorder_next()
210 return ubifs_tnc_postorder_first(zn); in ubifs_tnc_postorder_next()
224 struct ubifs_znode *zn = ubifs_tnc_postorder_first(znode); in ubifs_destroy_tnc_subtree() local
228 ubifs_assert(c, zn); in ubifs_destroy_tnc_subtree()
230 for (n = 0; n < zn->child_cnt; n++) { in ubifs_destroy_tnc_subtree()
231 if (!zn->zbranch[n].znode) in ubifs_destroy_tnc_subtree()
234 if (zn->level > 0 && in ubifs_destroy_tnc_subtree()
235 !ubifs_zn_dirty(zn->zbranch[n].znode)) in ubifs_destroy_tnc_subtree()
239 kfree(zn->zbranch[n].znode); in ubifs_destroy_tnc_subtree()
242 if (zn == znode) { in ubifs_destroy_tnc_subtree()
243 if (!ubifs_zn_dirty(zn)) in ubifs_destroy_tnc_subtree()
245 kfree(zn); in ubifs_destroy_tnc_subtree()
249 zn = ubifs_tnc_postorder_next(c, zn); in ubifs_destroy_tnc_subtree()