• Home
  • Raw
  • Download

Lines Matching refs:zn

35 	struct ubifs_znode *zn;  in ubifs_tnc_levelorder_next()  local
83 zn = ubifs_tnc_find_child(znode->parent, iip + 1); in ubifs_tnc_levelorder_next()
84 if (!zn) { in ubifs_tnc_levelorder_next()
91 while (zn->level != level) { in ubifs_tnc_levelorder_next()
92 znode = zn; in ubifs_tnc_levelorder_next()
93 zn = ubifs_tnc_find_child(zn, 0); in ubifs_tnc_levelorder_next()
94 if (!zn) { in ubifs_tnc_levelorder_next()
104 if (zn) { in ubifs_tnc_levelorder_next()
105 ubifs_assert(zn->level >= 0); in ubifs_tnc_levelorder_next()
106 return zn; in ubifs_tnc_levelorder_next()
196 struct ubifs_znode *zn; in ubifs_tnc_postorder_next() local
203 zn = ubifs_tnc_find_child(znode->parent, znode->iip + 1); in ubifs_tnc_postorder_next()
204 if (!zn) in ubifs_tnc_postorder_next()
209 return ubifs_tnc_postorder_first(zn); in ubifs_tnc_postorder_next()
221 struct ubifs_znode *zn = ubifs_tnc_postorder_first(znode); in ubifs_destroy_tnc_subtree() local
225 ubifs_assert(zn); in ubifs_destroy_tnc_subtree()
227 for (n = 0; n < zn->child_cnt; n++) { in ubifs_destroy_tnc_subtree()
228 if (!zn->zbranch[n].znode) in ubifs_destroy_tnc_subtree()
231 if (zn->level > 0 && in ubifs_destroy_tnc_subtree()
232 !ubifs_zn_dirty(zn->zbranch[n].znode)) in ubifs_destroy_tnc_subtree()
236 kfree(zn->zbranch[n].znode); in ubifs_destroy_tnc_subtree()
239 if (zn == znode) { in ubifs_destroy_tnc_subtree()
240 if (!ubifs_zn_dirty(zn)) in ubifs_destroy_tnc_subtree()
242 kfree(zn); in ubifs_destroy_tnc_subtree()
246 zn = ubifs_tnc_postorder_next(zn); in ubifs_destroy_tnc_subtree()