Lines Matching full:children
211 prt_printf(out, "is_subvol %llu deleted %llu parent %10u children %10u %10u subvol %u tree %u", in bch2_snapshot_to_text()
215 le32_to_cpu(s.v->children[0]), in bch2_snapshot_to_text()
216 le32_to_cpu(s.v->children[1]), in bch2_snapshot_to_text()
248 bkey_fsck_err_on(le32_to_cpu(s.v->children[0]) < le32_to_cpu(s.v->children[1]), in bch2_snapshot_validate()
250 "children not normalized"); in bch2_snapshot_validate()
252 bkey_fsck_err_on(s.v->children[0] && s.v->children[0] == s.v->children[1], in bch2_snapshot_validate()
257 id = le32_to_cpu(s.v->children[i]); in bch2_snapshot_validate()
306 t->children[0] = le32_to_cpu(s.v->children[0]); in __bch2_mark_snapshot()
307 t->children[1] = le32_to_cpu(s.v->children[1]); in __bch2_mark_snapshot()
361 return snapshot_t(c, id)->children[child]; in bch2_snapshot_child()
710 if (le32_to_cpu(v.children[0]) != k.k->p.offset && in check_snapshot()
711 le32_to_cpu(v.children[1]) != k.k->p.offset) { in check_snapshot()
719 for (i = 0; i < 2 && s.children[i]; i++) { in check_snapshot()
720 id = le32_to_cpu(s.children[i]); in check_snapshot()
1069 if (le32_to_cpu(s->children[0]) < le32_to_cpu(s->children[1])) in normalize_snapshot_child_pointers()
1070 swap(s->children[0], s->children[1]); in normalize_snapshot_child_pointers()
1093 BUG_ON(s.v->children[1]); in bch2_snapshot_node_delete()
1096 child_id = le32_to_cpu(s.v->children[0]); in bch2_snapshot_node_delete()
1110 /* find entry in parent->children for node being deleted */ in bch2_snapshot_node_delete()
1112 if (le32_to_cpu(parent->v.children[i]) == id) in bch2_snapshot_node_delete()
1120 parent->v.children[i] = cpu_to_le32(child_id); in bch2_snapshot_node_delete()
1154 BUG_ON(s.v->children[1]); in bch2_snapshot_node_delete()
1163 if (s.v->children[0]) { in bch2_snapshot_node_delete()
1164 s_t->v.root_snapshot = s.v->children[0]; in bch2_snapshot_node_delete()
1243 * Create new snapshot IDs as children of an existing snapshot ID:
1264 if (n_parent->v.children[0] || n_parent->v.children[1]) { in bch2_snapshot_node_create_children()
1265 bch_err(trans->c, "Trying to add child snapshot nodes to parent that already has children"); in bch2_snapshot_node_create_children()
1275 n_parent->v.children[0] = cpu_to_le32(new_snapids[0]); in bch2_snapshot_node_create_children()
1276 n_parent->v.children[1] = cpu_to_le32(new_snapids[1]); in bch2_snapshot_node_create_children()
1363 for (unsigned i = 0; i < ARRAY_SIZE(s->children); i++) in __live_child()
1364 if (s->children[i] && in __live_child()
1365 !snapshot_list_has_id(delete_leaves, s->children[i]) && in __live_child()
1366 !interior_delete_has_id(delete_interior, s->children[i])) in __live_child()
1367 return s->children[i]; in __live_child()
1369 for (unsigned i = 0; i < ARRAY_SIZE(s->children); i++) { in __live_child()
1370 u32 live_child = s->children[i] in __live_child()
1371 ? __live_child(t, s->children[i], delete_leaves, delete_interior) in __live_child()
1452 u32 child = le32_to_cpu(s.v->children[i]); in check_should_delete_snapshot()
1561 * For every snapshot node: If we have no live children and it's not in bch2_delete_dead_snapshots()
1622 * Fixing children of deleted snapshots can't be done completely in bch2_delete_dead_snapshots()
1700 return !!snap.v->children[0] + !!snap.v->children[1] == 1; in interior_snapshot_needs_delete()