Home
last modified time | relevance | path

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

/fs/bcachefs/
A Dsubvolume.c608 struct bkey_i_subvolume *new_subvol = NULL; in bch2_subvolume_create() local
652 ret = PTR_ERR_OR_ZERO(new_subvol); in bch2_subvolume_create()
656 new_subvol->v.flags = 0; in bch2_subvolume_create()
657 new_subvol->v.snapshot = cpu_to_le32(new_nodes[0]); in bch2_subvolume_create()
658 new_subvol->v.inode = cpu_to_le64(inode); in bch2_subvolume_create()
659 new_subvol->v.creation_parent = cpu_to_le32(src_subvolid); in bch2_subvolume_create()
660 new_subvol->v.fs_path_parent = cpu_to_le32(parent_subvolid); in bch2_subvolume_create()
662 new_subvol->v.otime.hi = 0; in bch2_subvolume_create()
664 SET_BCH_SUBVOLUME_RO(&new_subvol->v, ro); in bch2_subvolume_create()
665 SET_BCH_SUBVOLUME_SNAP(&new_subvol->v, src_subvolid != 0); in bch2_subvolume_create()
[all …]
A Dnamei.c114 u32 new_subvol, dir_snapshot; in bch2_create_trans() local
119 &new_subvol, &snapshot, in bch2_create_trans()
125 new_inode->bi_subvol = new_subvol; in bch2_create_trans()
126 new_inum.subvol = new_subvol; in bch2_create_trans()
127 dir_target = new_subvol; in bch2_create_trans()
A Dfsck.c599 struct bkey_i_subvolume *new_subvol = bch2_trans_kmalloc(trans, sizeof(*new_subvol)); in reconstruct_subvol() local
600 int ret = PTR_ERR_OR_ZERO(new_subvol); in reconstruct_subvol()
604 bkey_subvolume_init(&new_subvol->k_i); in reconstruct_subvol()
605 new_subvol->k.p.offset = subvolid; in reconstruct_subvol()
606 new_subvol->v.snapshot = cpu_to_le32(snapshotid); in reconstruct_subvol()
607 new_subvol->v.inode = cpu_to_le64(inum); in reconstruct_subvol()
608 ret = bch2_btree_insert_trans(trans, BTREE_ID_subvolumes, &new_subvol->k_i, 0); in reconstruct_subvol()

Completed in 13 milliseconds