From 9b3959d72a28079ed91d1028418dd17677cd3ffd Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Tue, 13 Jun 2017 17:19:33 +0800 Subject: btrfs-progs: Refactor btrfs_add_device() to use btrfs_fs_info BTW, there is a duplicated definition of btrfs_add_device() in volumes.h, also remove it. Signed-off-by: Qu Wenruo Signed-off-by: David Sterba --- volumes.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'volumes.h') diff --git a/volumes.h b/volumes.h index 44130adb..0f82281f 100644 --- a/volumes.h +++ b/volumes.h @@ -213,15 +213,12 @@ int btrfs_alloc_data_chunk(struct btrfs_trans_handle *trans, struct btrfs_root *extent_root, u64 *start, u64 num_bytes, u64 type, int convert); int btrfs_read_super_device(struct btrfs_root *root, struct extent_buffer *buf); -int btrfs_add_device(struct btrfs_trans_handle *trans, - struct btrfs_root *root, - struct btrfs_device *device); int btrfs_open_devices(struct btrfs_fs_devices *fs_devices, int flags); int btrfs_close_devices(struct btrfs_fs_devices *fs_devices); void btrfs_close_all_devices(void); int btrfs_add_device(struct btrfs_trans_handle *trans, - struct btrfs_root *root, + struct btrfs_fs_info *fs_info, struct btrfs_device *device); int btrfs_update_device(struct btrfs_trans_handle *trans, struct btrfs_device *device); -- cgit v1.2.3