aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2018-03-20 15:47:33 +0100
committerDavid Sterba <dsterba@suse.com>2018-05-28 18:07:23 +0200
commita425f9d4755a14fd8b9d2648a23ebe1dea11bd57 (patch)
treedb79c904ade0dea552649ecb57d5ac7cbe288018 /fs/btrfs/volumes.h
parentbtrfs: make success path out of btrfs_init_dev_replace_tgtdev more clear (diff)
downloadlinux-dev-a425f9d4755a14fd8b9d2648a23ebe1dea11bd57.tar.xz
linux-dev-a425f9d4755a14fd8b9d2648a23ebe1dea11bd57.zip
btrfs: export and rename free_device
The function will be used outside of volumes.c, the allocation btrfs_alloc_device is also exported. Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.h')
-rw-r--r--fs/btrfs/volumes.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h
index 62a92e472f65..316cce159969 100644
--- a/fs/btrfs/volumes.h
+++ b/fs/btrfs/volumes.h
@@ -421,6 +421,7 @@ int btrfs_find_device_by_devspec(struct btrfs_fs_info *fs_info, u64 devid,
struct btrfs_device *btrfs_alloc_device(struct btrfs_fs_info *fs_info,
const u64 *devid,
const u8 *uuid);
+void btrfs_free_device(struct btrfs_device *device);
int btrfs_rm_device(struct btrfs_fs_info *fs_info,
const char *device_path, u64 devid);
void __exit btrfs_cleanup_fs_uuids(void);