summaryrefslogtreecommitdiff
path: root/fs/btrfs/uuid-tree.h
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2024-07-24 14:29:02 +0930
committerDavid Sterba <dsterba@suse.com>2024-09-10 16:51:12 +0200
commitc92bf5df8a120f4ee91832faee373570d83cbb13 (patch)
treefcb37478b85cce57af318b1162a759e374a89d05 /fs/btrfs/uuid-tree.h
parentab094670fab468aef551aafc197cdf4cf1a2e611 (diff)
btrfs: move uuid tree related code to uuid-tree.[ch]
Functions btrfs_uuid_scan_kthread() and btrfs_create_uuid_tree() are for UUID tree rescan and creation, it's not suitable for volumes.[ch]. Move them to uuid-tree.[ch] instead. Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/uuid-tree.h')
-rw-r--r--fs/btrfs/uuid-tree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/uuid-tree.h b/fs/btrfs/uuid-tree.h
index a3f5757cc7cf..c60ad20325cc 100644
--- a/fs/btrfs/uuid-tree.h
+++ b/fs/btrfs/uuid-tree.h
@@ -13,5 +13,7 @@ int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, const u8 *uuid, u8 typ
int btrfs_uuid_tree_remove(struct btrfs_trans_handle *trans, const u8 *uuid, u8 type,
u64 subid);
int btrfs_uuid_tree_iterate(struct btrfs_fs_info *fs_info);
+int btrfs_create_uuid_tree(struct btrfs_fs_info *fs_info);
+int btrfs_uuid_scan_kthread(void *data);
#endif