Home
last modified time | relevance | path

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

/fs/bcachefs/
A Dstr_hash.c123 struct bch_inode_unpacked *snapshot_root) in bch2_repair_inode_hash_info() argument
133 POS(0, snapshot_root->bi_inum), in bch2_repair_inode_hash_info()
135 if (bpos_ge(k.k->p, SPOS(0, snapshot_root->bi_inum, snapshot_root->bi_snapshot))) in bch2_repair_inode_hash_info()
145 if (inode.bi_hash_seed == snapshot_root->bi_hash_seed && in bch2_repair_inode_hash_info()
161 snapshot_root->bi_inum, in bch2_repair_inode_hash_info()
163 snapshot_root->bi_snapshot); in bch2_repair_inode_hash_info()
169 prt_printf(&buf, " %llx", snapshot_root->bi_hash_seed); in bch2_repair_inode_hash_info()
172 inode.bi_hash_seed = snapshot_root->bi_hash_seed; in bch2_repair_inode_hash_info()
190 snapshot_root->bi_inum); in bch2_repair_inode_hash_info()
194 prt_printf(&buf, " %llx\n", snapshot_root->bi_hash_seed); in bch2_repair_inode_hash_info()
[all …]
A Dsnapshot.c406 u32 bch2_snapshot_oldest_subvol(struct bch_fs *c, u32 snapshot_root, in bch2_snapshot_oldest_subvol() argument
412 id = snapshot_root; in bch2_snapshot_oldest_subvol()
421 if (id == snapshot_root) in bch2_snapshot_oldest_subvol()
434 u32 snapshot_root, u32 *subvol_id) in bch2_snapshot_tree_master_subvol() argument
448 if (!bch2_snapshot_is_ancestor(c, le32_to_cpu(s.v->snapshot), snapshot_root)) in bch2_snapshot_tree_master_subvol()
461 *subvol_id = bch2_snapshot_oldest_subvol(c, snapshot_root, NULL); in bch2_snapshot_tree_master_subvol()
A Dfsck.c1117 struct bch_inode_unpacked *snapshot_root, in check_inode() argument
1143 if (snapshot_root->bi_inum != u.bi_inum) { in check_inode()
1144 ret = bch2_inode_find_snapshot_root(trans, u.bi_inum, snapshot_root); in check_inode()
1149 if (u.bi_hash_seed != snapshot_root->bi_hash_seed || in check_inode()
1150 INODE_STR_HASH(&u) != INODE_STR_HASH(snapshot_root)) { in check_inode()
1151 ret = bch2_repair_inode_hash_info(trans, snapshot_root); in check_inode()
1331 struct bch_inode_unpacked snapshot_root = {}; in bch2_check_inodes() local
1341 check_inode(trans, &iter, k, &snapshot_root, &s))); in bch2_check_inodes()
A Dsubvolume.c153 u32 snapshot_root = bch2_snapshot_root(c, le32_to_cpu(subvol.v->snapshot)); in check_subvol() local
154 u32 snapshot_tree = bch2_snapshot_tree(c, snapshot_root); in check_subvol()

Completed in 17 milliseconds