btrfs: move uuid tree related code to uuid-tree.[ch]
authorQu Wenruo <wqu@suse.com>
Wed, 24 Jul 2024 04:59:02 +0000 (14:29 +0930)
committerDavid Sterba <dsterba@suse.com>
Tue, 10 Sep 2024 14:51:12 +0000 (16:51 +0200)
commitc92bf5df8a120f4ee91832faee373570d83cbb13
treefcb37478b85cce57af318b1162a759e374a89d05
parentab094670fab468aef551aafc197cdf4cf1a2e611
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>
fs/btrfs/uuid-tree.c
fs/btrfs/uuid-tree.h
fs/btrfs/volumes.c
fs/btrfs/volumes.h