Home
last modified time | relevance | path

Searched refs:new_subvol (Results 1 – 3 of 3) sorted by relevance

/linux/fs/bcachefs/
H A Dsubvolume.c577 struct bkey_i_subvolume *new_subvol = NULL; in bch2_subvolume_create() local
621 new_subvol = bch2_bkey_alloc(trans, &dst_iter, 0, subvolume); in bch2_subvolume_create()
622 ret = PTR_ERR_OR_ZERO(new_subvol); in bch2_subvolume_create()
626 new_subvol->v.flags = 0; in bch2_subvolume_create()
627 new_subvol->v.snapshot = cpu_to_le32(new_nodes[0]); in bch2_subvolume_create()
628 new_subvol->v.inode = cpu_to_le64(inode); in bch2_subvolume_create()
629 new_subvol->v.creation_parent = cpu_to_le32(src_subvolid); in bch2_subvolume_create()
630 new_subvol->v.fs_path_parent = cpu_to_le32(parent_subvolid); in bch2_subvolume_create()
631 new_subvol->v.otime.lo = cpu_to_le64(bch2_current_time(c)); in bch2_subvolume_create()
632 new_subvol->v.otime.hi = 0; in bch2_subvolume_create()
[all …]
H A Dfs-common.c106 u32 new_subvol, dir_snapshot; in bch2_create_trans() local
111 &new_subvol, &snapshot, in bch2_create_trans()
117 new_inode->bi_subvol = new_subvol; in bch2_create_trans()
118 new_inum.subvol = new_subvol; in bch2_create_trans()
119 dir_target = new_subvol; in bch2_create_trans()
H A Dfsck.c614 struct bkey_i_subvolume *new_subvol = bch2_trans_kmalloc(trans, sizeof(*new_subvol)); in reconstruct_subvol() local
615 int ret = PTR_ERR_OR_ZERO(new_subvol); in reconstruct_subvol()
619 bkey_subvolume_init(&new_subvol->k_i); in reconstruct_subvol()
620 new_subvol->k.p.offset = subvolid; in reconstruct_subvol()
621 new_subvol->v.snapshot = cpu_to_le32(snapshotid); in reconstruct_subvol()
622 new_subvol->v.inode = cpu_to_le64(inum); in reconstruct_subvol()
623 ret = bch2_btree_insert_trans(trans, BTREE_ID_subvolumes, &new_subvol->k_i, 0); in reconstruct_subvol()