Home
last modified time | relevance | path

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

/linux-6.12.1/fs/bcachefs/
Dsubvolume.c615 struct bkey_i_snapshot root_snapshot; in bch2_initialize_subvolumes() local
622 root_tree.v.root_snapshot = cpu_to_le32(U32_MAX); in bch2_initialize_subvolumes()
624 bkey_snapshot_init(&root_snapshot.k_i); in bch2_initialize_subvolumes()
625 root_snapshot.k.p.offset = U32_MAX; in bch2_initialize_subvolumes()
626 root_snapshot.v.flags = 0; in bch2_initialize_subvolumes()
627 root_snapshot.v.parent = 0; in bch2_initialize_subvolumes()
628 root_snapshot.v.subvol = cpu_to_le32(BCACHEFS_ROOT_SUBVOL); in bch2_initialize_subvolumes()
629 root_snapshot.v.tree = cpu_to_le32(1); in bch2_initialize_subvolumes()
630 SET_BCH_SNAPSHOT_SUBVOL(&root_snapshot.v, true); in bch2_initialize_subvolumes()
639 bch2_btree_insert(c, BTREE_ID_snapshots, &root_snapshot.k_i, NULL, 0, 0) ?: in bch2_initialize_subvolumes()
Dsnapshot_format.h33 __le32 root_snapshot; member
Dsnapshot.c31 le32_to_cpu(t.v->root_snapshot)); in bch2_snapshot_tree_to_text()
87 n_tree->v.root_snapshot = cpu_to_le32(root_id); in bch2_snapshot_tree_create()
546 root_id = le32_to_cpu(st.v->root_snapshot); in check_snapshot_tree()
646 return bch2_snapshot_is_ancestor_early(trans->c, snap_id, le32_to_cpu(s_t.root_snapshot)); in snapshot_tree_ptr_good()
712 if (ret || le32_to_cpu(s_t.root_snapshot) != root_id) { in snapshot_tree_ptr_repair()
916 if (le32_to_cpu(bkey_s_c_to_snapshot_tree(k).v->root_snapshot) == id) { in check_snapshot_exists()
1225 s_t->v.root_snapshot = s.v->children[0]; in bch2_snapshot_node_delete()
1368 n_tree->v.root_snapshot = cpu_to_le32(new_snapids[0]); in bch2_snapshot_node_create_tree()
Dfsck.c286 snapshot = le32_to_cpu(st.root_snapshot); in lookup_lostfound()
292 root_inum.subvol, le32_to_cpu(st.root_snapshot)); in lookup_lostfound()
301 lostfound->bi_snapshot = le32_to_cpu(st.root_snapshot); in lookup_lostfound()