Lines Matching refs:zn

44 	struct ubifs_znode *zn;  in ubifs_tnc_levelorder_next()  local
92 zn = ubifs_tnc_find_child(znode->parent, iip + 1); in ubifs_tnc_levelorder_next()
93 if (!zn) { in ubifs_tnc_levelorder_next()
100 while (zn->level != level) { in ubifs_tnc_levelorder_next()
101 znode = zn; in ubifs_tnc_levelorder_next()
102 zn = ubifs_tnc_find_child(zn, 0); in ubifs_tnc_levelorder_next()
103 if (!zn) { in ubifs_tnc_levelorder_next()
113 if (zn) { in ubifs_tnc_levelorder_next()
114 ubifs_assert(zn->level >= 0); in ubifs_tnc_levelorder_next()
115 return zn; in ubifs_tnc_levelorder_next()
205 struct ubifs_znode *zn; in ubifs_tnc_postorder_next() local
212 zn = ubifs_tnc_find_child(znode->parent, znode->iip + 1); in ubifs_tnc_postorder_next()
213 if (!zn) in ubifs_tnc_postorder_next()
218 return ubifs_tnc_postorder_first(zn); in ubifs_tnc_postorder_next()
230 struct ubifs_znode *zn = ubifs_tnc_postorder_first(znode); in ubifs_destroy_tnc_subtree() local
234 ubifs_assert(zn); in ubifs_destroy_tnc_subtree()
236 for (n = 0; n < zn->child_cnt; n++) { in ubifs_destroy_tnc_subtree()
237 if (!zn->zbranch[n].znode) in ubifs_destroy_tnc_subtree()
240 if (zn->level > 0 && in ubifs_destroy_tnc_subtree()
241 !ubifs_zn_dirty(zn->zbranch[n].znode)) in ubifs_destroy_tnc_subtree()
245 kfree(zn->zbranch[n].znode); in ubifs_destroy_tnc_subtree()
248 if (zn == znode) { in ubifs_destroy_tnc_subtree()
249 if (!ubifs_zn_dirty(zn)) in ubifs_destroy_tnc_subtree()
251 kfree(zn); in ubifs_destroy_tnc_subtree()
255 zn = ubifs_tnc_postorder_next(zn); in ubifs_destroy_tnc_subtree()