diff options
author | Filipe Manana <fdmanana@suse.com> | 2023-04-26 19:13:01 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2023-06-19 13:59:22 +0200 |
commit | f2db4d5cb457b7da439d5509bdb6f7b01054c11b (patch) | |
tree | eb5b4c8793326e366455c172dd4e7735197bd45f /fs/btrfs/volumes.c | |
parent | btrfs: don't commit transaction for every subvol create (diff) | |
download | linux-f2db4d5cb457b7da439d5509bdb6f7b01054c11b.tar.xz linux-f2db4d5cb457b7da439d5509bdb6f7b01054c11b.zip |
btrfs: make btrfs_free_device() static
The function btrfs_free_device() is never used outside of volumes.c, so
make it static and remove its prototype declaration at volumes.h.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r-- | fs/btrfs/volumes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 841e799dece5..1a7620680f50 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -391,7 +391,7 @@ static struct btrfs_fs_devices *alloc_fs_devices(const u8 *fsid, return fs_devs; } -void btrfs_free_device(struct btrfs_device *device) +static void btrfs_free_device(struct btrfs_device *device) { WARN_ON(!list_empty(&device->post_commit_list)); rcu_string_free(device->name); |