btrfs: cleanup btrfs_free_stale_device() usage
authorAnand Jain <anand.jain@oracle.com>
Wed, 10 Jan 2018 05:15:18 +0000 (13:15 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:21 +0000 (16:08 +0100)
commit1c94da9dd913e69c67fbc77603d56ffa61e454c2
treeb6178d8c1b4048dfb7d63e5eebcb253cc17d5eb8
parente2683fc9d219430f5b78889b50cde7f40efeba7b
btrfs: cleanup btrfs_free_stale_device() usage

We call btrfs_free_stale_device() only when we alloc a new struct
btrfs_device (ret=1), so move it closer to where we alloc the new
device. Also drop the comments.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c