diff options
author | David Sterba <dsterba@suse.com> | 2018-03-20 15:47:33 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-05-28 18:07:23 +0200 |
commit | a425f9d4755a14fd8b9d2648a23ebe1dea11bd57 (patch) | |
tree | db79c904ade0dea552649ecb57d5ac7cbe288018 /fs/btrfs/volumes.h | |
parent | 6fc4749d25738e1a5e5b02d04a0a60bbae516652 (diff) | |
download | lwn-a425f9d4755a14fd8b9d2648a23ebe1dea11bd57.tar.gz lwn-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.h | 1 |
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); |