Searched refs:root_snapshot (Results 1 – 4 of 4) sorted by relevance
648 struct bkey_i_snapshot root_snapshot; in bch2_initialize_subvolumes() local655 root_tree.v.root_snapshot = cpu_to_le32(U32_MAX); in bch2_initialize_subvolumes()657 bkey_snapshot_init(&root_snapshot.k_i); in bch2_initialize_subvolumes()658 root_snapshot.k.p.offset = U32_MAX; in bch2_initialize_subvolumes()659 root_snapshot.v.flags = 0; in bch2_initialize_subvolumes()660 root_snapshot.v.parent = 0; in bch2_initialize_subvolumes()661 root_snapshot.v.subvol = cpu_to_le32(BCACHEFS_ROOT_SUBVOL); in bch2_initialize_subvolumes()662 root_snapshot.v.tree = cpu_to_le32(1); in bch2_initialize_subvolumes()663 SET_BCH_SNAPSHOT_SUBVOL(&root_snapshot.v, true); in bch2_initialize_subvolumes()672 bch2_btree_insert(c, BTREE_ID_snapshots, &root_snapshot.k_i, NULL, 0, 0) ?: in bch2_initialize_subvolumes()
33 __le32 root_snapshot; member
32 le32_to_cpu(t.v->root_snapshot)); in bch2_snapshot_tree_to_text()88 n_tree->v.root_snapshot = cpu_to_le32(root_id); in bch2_snapshot_tree_create()471 root_id = le32_to_cpu(st.v->root_snapshot); in check_snapshot_tree()586 return bch2_snapshot_is_ancestor_early(trans->c, snap_id, le32_to_cpu(s_t.root_snapshot)); in snapshot_tree_ptr_good()652 if (ret || le32_to_cpu(s_t.root_snapshot) != root_id) { in snapshot_tree_ptr_repair()856 if (le32_to_cpu(bkey_s_c_to_snapshot_tree(k).v->root_snapshot) == id) { in check_snapshot_exists()1164 s_t->v.root_snapshot = s.v->children[0]; in bch2_snapshot_node_delete()1303 n_tree->v.root_snapshot = cpu_to_le32(new_snapids[0]); in bch2_snapshot_node_create_tree()
326 snapshot = le32_to_cpu(st.root_snapshot); in lookup_lostfound()346 lostfound->bi_snapshot = le32_to_cpu(st.root_snapshot); in lookup_lostfound()