Lines Matching refs:depth
222 if (bkey_val_bytes(k.k) > offsetof(struct bch_snapshot, depth)) in bch2_snapshot_to_text()
224 le32_to_cpu(s.v->depth), in bch2_snapshot_to_text()
325 if (bkey_val_bytes(s.k) > offsetof(struct bch_snapshot, depth)) { in __bch2_mark_snapshot()
326 t->depth = le32_to_cpu(s.v->depth); in __bch2_mark_snapshot()
331 t->depth = 0; in __bch2_mark_snapshot()
619 ? bch2_snapshot_nth_parent(c, id, get_random_u32_below(s->depth)) in bch2_snapshot_skiplist_get()
807 if (fsck_err_on(le32_to_cpu(s.depth) != real_depth, in check_snapshot()
816 u->v.depth = cpu_to_le32(real_depth); in check_snapshot()
1260 s->v.depth = 0; in bch2_snapshot_node_delete()
1286 u32 depth = bch2_snapshot_depth(c, parent); in create_snapids() local
1316 n->v.depth = cpu_to_le32(depth); in create_snapids()
1773 le32_add_cpu(&s->v.depth, -nr_deleted_ancestors); in bch2_fix_child_of_deleted_snapshot()
1775 if (!s->v.depth) { in bch2_fix_child_of_deleted_snapshot()
1780 u32 depth = le32_to_cpu(s->v.depth); in bch2_fix_child_of_deleted_snapshot() local
1789 depth > 1 in bch2_fix_child_of_deleted_snapshot()
1790 ? get_random_u32_below(depth - 1) in bch2_fix_child_of_deleted_snapshot()