Lines Matching refs:zn

37 	struct ubifs_znode *zn;  in ubifs_tnc_levelorder_next()  local
85 zn = ubifs_tnc_find_child(znode->parent, iip + 1); in ubifs_tnc_levelorder_next()
86 if (!zn) { in ubifs_tnc_levelorder_next()
93 while (zn->level != level) { in ubifs_tnc_levelorder_next()
94 znode = zn; in ubifs_tnc_levelorder_next()
95 zn = ubifs_tnc_find_child(zn, 0); in ubifs_tnc_levelorder_next()
96 if (!zn) { in ubifs_tnc_levelorder_next()
106 if (zn) { in ubifs_tnc_levelorder_next()
107 ubifs_assert(zn->level >= 0); in ubifs_tnc_levelorder_next()
108 return zn; in ubifs_tnc_levelorder_next()
198 struct ubifs_znode *zn; in ubifs_tnc_postorder_next() local
205 zn = ubifs_tnc_find_child(znode->parent, znode->iip + 1); in ubifs_tnc_postorder_next()
206 if (!zn) in ubifs_tnc_postorder_next()
211 return ubifs_tnc_postorder_first(zn); in ubifs_tnc_postorder_next()
223 struct ubifs_znode *zn = ubifs_tnc_postorder_first(znode); in ubifs_destroy_tnc_subtree() local
227 ubifs_assert(zn); in ubifs_destroy_tnc_subtree()
229 for (n = 0; n < zn->child_cnt; n++) { in ubifs_destroy_tnc_subtree()
230 if (!zn->zbranch[n].znode) in ubifs_destroy_tnc_subtree()
233 if (zn->level > 0 && in ubifs_destroy_tnc_subtree()
234 !ubifs_zn_dirty(zn->zbranch[n].znode)) in ubifs_destroy_tnc_subtree()
238 kfree(zn->zbranch[n].znode); in ubifs_destroy_tnc_subtree()
241 if (zn == znode) { in ubifs_destroy_tnc_subtree()
242 if (!ubifs_zn_dirty(zn)) in ubifs_destroy_tnc_subtree()
244 kfree(zn); in ubifs_destroy_tnc_subtree()
248 zn = ubifs_tnc_postorder_next(zn); in ubifs_destroy_tnc_subtree()