Lines Matching refs:skip

118 	if (s->skip[2] <= ancestor)  in get_ancestor_below()
119 return s->skip[2]; in get_ancestor_below()
120 if (s->skip[1] <= ancestor) in get_ancestor_below()
121 return s->skip[1]; in get_ancestor_below()
122 if (s->skip[0] <= ancestor) in get_ancestor_below()
123 return s->skip[0]; in get_ancestor_below()
222 le32_to_cpu(s.v->skip[0]), in bch2_snapshot_to_text()
223 le32_to_cpu(s.v->skip[1]), in bch2_snapshot_to_text()
224 le32_to_cpu(s.v->skip[2])); in bch2_snapshot_to_text()
264 if (bkey_val_bytes(k.k) > offsetof(struct bch_snapshot, skip)) { in bch2_snapshot_validate()
265 bkey_fsck_err_on(le32_to_cpu(s.v->skip[0]) > le32_to_cpu(s.v->skip[1]) || in bch2_snapshot_validate()
266 le32_to_cpu(s.v->skip[1]) > le32_to_cpu(s.v->skip[2]), in bch2_snapshot_validate()
270 for (i = 0; i < ARRAY_SIZE(s.v->skip); i++) { in bch2_snapshot_validate()
271 id = le32_to_cpu(s.v->skip[i]); in bch2_snapshot_validate()
328 t->skip[0] = le32_to_cpu(s.v->skip[0]); in __bch2_mark_snapshot()
329 t->skip[1] = le32_to_cpu(s.v->skip[1]); in __bch2_mark_snapshot()
330 t->skip[2] = le32_to_cpu(s.v->skip[2]); in __bch2_mark_snapshot()
333 t->skip[0] = 0; in __bch2_mark_snapshot()
334 t->skip[1] = 0; in __bch2_mark_snapshot()
335 t->skip[2] = 0; in __bch2_mark_snapshot()
671 if (s.skip[i]) in snapshot_skiplist_good()
674 if (!bch2_snapshot_is_ancestor_early(trans->c, id, le32_to_cpu(s.skip[i]))) in snapshot_skiplist_good()
872 for (i = 0; i < ARRAY_SIZE(u->v.skip); i++) in check_snapshot()
873 u->v.skip[i] = cpu_to_le32(bch2_snapshot_skiplist_get(c, parent_id)); in check_snapshot()
875 bubble_sort(u->v.skip, ARRAY_SIZE(u->v.skip), cmp_le32); in check_snapshot()
1201 child->v.skip[0] = 0; in bch2_snapshot_node_delete()
1202 child->v.skip[1] = 0; in bch2_snapshot_node_delete()
1203 child->v.skip[2] = 0; in bch2_snapshot_node_delete()
1285 for (j = 0; j < ARRAY_SIZE(n->v.skip); j++) in create_snapids()
1286 n->v.skip[j] = cpu_to_le32(bch2_snapshot_skiplist_get(c, parent)); in create_snapids()
1288 bubble_sort(n->v.skip, ARRAY_SIZE(n->v.skip), cmp_le32); in create_snapids()
1519 snapshot_id_list *skip) in bch2_snapshot_nth_parent_skip() argument
1522 while (snapshot_list_has_id(skip, id)) in bch2_snapshot_nth_parent_skip()
1528 } while (snapshot_list_has_id(skip, id)); in bch2_snapshot_nth_parent_skip()
1564 s->v.skip[0] = 0; in bch2_fix_child_of_deleted_snapshot()
1565 s->v.skip[1] = 0; in bch2_fix_child_of_deleted_snapshot()
1566 s->v.skip[2] = 0; in bch2_fix_child_of_deleted_snapshot()
1571 for (unsigned j = 0; j < ARRAY_SIZE(s->v.skip); j++) { in bch2_fix_child_of_deleted_snapshot()
1572 u32 id = le32_to_cpu(s->v.skip[j]); in bch2_fix_child_of_deleted_snapshot()
1581 s->v.skip[j] = cpu_to_le32(id); in bch2_fix_child_of_deleted_snapshot()
1585 bubble_sort(s->v.skip, ARRAY_SIZE(s->v.skip), cmp_le32); in bch2_fix_child_of_deleted_snapshot()