Lines Matching refs:new_subvol
544 struct bkey_i_subvolume *new_subvol = NULL; in bch2_subvolume_create() local
588 new_subvol = bch2_bkey_alloc(trans, &dst_iter, 0, subvolume); in bch2_subvolume_create()
589 ret = PTR_ERR_OR_ZERO(new_subvol); in bch2_subvolume_create()
593 new_subvol->v.flags = 0; in bch2_subvolume_create()
594 new_subvol->v.snapshot = cpu_to_le32(new_nodes[0]); in bch2_subvolume_create()
595 new_subvol->v.inode = cpu_to_le64(inode); in bch2_subvolume_create()
596 new_subvol->v.creation_parent = cpu_to_le32(src_subvolid); in bch2_subvolume_create()
597 new_subvol->v.fs_path_parent = cpu_to_le32(parent_subvolid); in bch2_subvolume_create()
598 new_subvol->v.otime.lo = cpu_to_le64(bch2_current_time(c)); in bch2_subvolume_create()
599 new_subvol->v.otime.hi = 0; in bch2_subvolume_create()
601 SET_BCH_SUBVOLUME_RO(&new_subvol->v, ro); in bch2_subvolume_create()
602 SET_BCH_SUBVOLUME_SNAP(&new_subvol->v, src_subvolid != 0); in bch2_subvolume_create()
604 *new_subvolid = new_subvol->k.p.offset; in bch2_subvolume_create()