Home
last modified time | relevance | path

Searched refs:root_snapshot (Results 1 – 4 of 4) sorted by relevance

/fs/bcachefs/
A Dsubvolume.c678 struct bkey_i_snapshot root_snapshot; in bch2_initialize_subvolumes() local
685 root_tree.v.root_snapshot = cpu_to_le32(U32_MAX); in bch2_initialize_subvolumes()
687 bkey_snapshot_init(&root_snapshot.k_i); in bch2_initialize_subvolumes()
688 root_snapshot.k.p.offset = U32_MAX; in bch2_initialize_subvolumes()
689 root_snapshot.v.flags = 0; in bch2_initialize_subvolumes()
690 root_snapshot.v.parent = 0; in bch2_initialize_subvolumes()
691 root_snapshot.v.subvol = cpu_to_le32(BCACHEFS_ROOT_SUBVOL); in bch2_initialize_subvolumes()
692 root_snapshot.v.tree = cpu_to_le32(1); in bch2_initialize_subvolumes()
693 SET_BCH_SNAPSHOT_SUBVOL(&root_snapshot.v, true); in bch2_initialize_subvolumes()
702 bch2_btree_insert(c, BTREE_ID_snapshots, &root_snapshot.k_i, NULL, 0, 0) ?: in bch2_initialize_subvolumes()
A Dsnapshot_format.h33 __le32 root_snapshot; member
A Dsnapshot.c34 le32_to_cpu(t.v->root_snapshot)); in bch2_snapshot_tree_to_text()
90 n_tree->v.root_snapshot = cpu_to_le32(root_id); in bch2_snapshot_tree_create()
493 root_id = le32_to_cpu(st.v->root_snapshot); in check_snapshot_tree()
608 return bch2_snapshot_is_ancestor_early(trans->c, snap_id, le32_to_cpu(s_t.root_snapshot)); in snapshot_tree_ptr_good()
670 if (ret || le32_to_cpu(s_t.root_snapshot) != root_id) { in snapshot_tree_ptr_repair()
875 le32_to_cpu(bkey_s_c_to_snapshot_tree(k).v->root_snapshot) == id) { in check_snapshot_exists()
1246 s_t->v.root_snapshot = s->v.children[0]; in bch2_snapshot_node_delete()
1399 n_tree->v.root_snapshot = cpu_to_le32(new_snapids[0]); in bch2_snapshot_node_create_tree()
A Dfsck.c251 snapshot = le32_to_cpu(st.root_snapshot); in lookup_lostfound()
271 lostfound->bi_snapshot = le32_to_cpu(st.root_snapshot); in lookup_lostfound()

Completed in 16 milliseconds