Home
last modified time | relevance | path

Searched refs:subvolid (Results 1 – 8 of 8) sorted by relevance

/linux-6.12.1/fs/bcachefs/
Dsubvolume.c334 int __bch2_subvolume_get_snapshot(struct btree_trans *trans, u32 subvolid, in __bch2_subvolume_get_snapshot() argument
342 BTREE_ID_subvolumes, POS(0, subvolid), in __bch2_subvolume_get_snapshot()
348 "missing subvolume %u", subvolid); in __bch2_subvolume_get_snapshot()
356 int bch2_subvolume_get_snapshot(struct btree_trans *trans, u32 subvolid, in bch2_subvolume_get_snapshot() argument
359 return __bch2_subvolume_get_snapshot(trans, subvolid, snapid, true); in bch2_subvolume_get_snapshot()
412 static int __bch2_subvolume_delete(struct btree_trans *trans, u32 subvolid) in __bch2_subvolume_delete() argument
420 BTREE_ID_subvolumes, POS(0, subvolid), in __bch2_subvolume_delete()
425 "missing subvolume %u", subvolid); in __bch2_subvolume_delete()
437 static int bch2_subvolume_delete(struct btree_trans *trans, u32 subvolid) in bch2_subvolume_delete() argument
439 return bch2_subvolumes_reparent(trans, subvolid) ?: in bch2_subvolume_delete()
[all …]
Dsubvolume.h38 u32 subvolid, unsigned flags) in bch2_btree_iter_peek_in_subvolume_upto_type() argument
41 int ret = bch2_subvolume_get_snapshot(iter->trans, subvolid, &snapshot); in bch2_btree_iter_peek_in_subvolume_upto_type()
Dfsck.c526 static int reconstruct_subvol(struct btree_trans *trans, u32 snapshotid, u32 subvolid, u64 inum) in reconstruct_subvol() argument
548 new_inode.bi_subvol = subvolid; in reconstruct_subvol()
560 bch_info(c, "reconstructing subvol %u with root inode %llu", subvolid, inum); in reconstruct_subvol()
568 new_subvol->k.p.offset = subvolid; in reconstruct_subvol()
586 s->v.subvol = cpu_to_le32(subvolid); in reconstruct_subvol()
599 st->v.master_subvol = cpu_to_le32(subvolid); in reconstruct_subvol()
2283 static int find_snapshot_subvol(struct btree_trans *trans, u32 snapshot, u32 *subvolid) in find_snapshot_subvol() argument
2296 *subvolid = k.k->p.offset; in find_snapshot_subvol()
/linux-6.12.1/fs/btrfs/
Duuid-tree.c261 const u8 *uuid, u8 type, u64 subvolid) in btrfs_check_uuid_tree_entry() argument
270 subvol_root = btrfs_get_fs_root(fs_info, subvolid, true); in btrfs_check_uuid_tree_entry()
Dqgroup.h339 int btrfs_qgroup_cleanup_dropped_subvolume(struct btrfs_fs_info *fs_info, u64 subvolid);
Dqgroup.c1880 int btrfs_qgroup_cleanup_dropped_subvolume(struct btrfs_fs_info *fs_info, u64 subvolid) in btrfs_qgroup_cleanup_dropped_subvolume() argument
1885 if (!is_fstree(subvolid) || !btrfs_qgroup_enabled(fs_info) || !fs_info->quota_root) in btrfs_qgroup_cleanup_dropped_subvolume()
1904 ret = btrfs_remove_qgroup(trans, subvolid); in btrfs_qgroup_cleanup_dropped_subvolume()
Dioctl.c2423 if (vol_args2->subvolid < BTRFS_FIRST_FREE_OBJECTID) { in btrfs_ioctl_snap_destroy()
2434 vol_args2->subvolid, 0); in btrfs_ioctl_snap_destroy()
2485 fs_info, vol_args2->subvolid); in btrfs_ioctl_snap_destroy()
/linux-6.12.1/include/uapi/linux/
Dbtrfs.h149 __u64 subvolid; member