btrfs: make btrfs_free_stale_devices() to match the path
authorAnand Jain <Anand.Jain@oracle.com>
Thu, 18 Jan 2018 14:00:37 +0000 (22:00 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 19:25:52 +0000 (20:25 +0100)
commitd8367db30a101123f82a9408c8c6dd3fb287653f
tree621d898b0b5ce23471517097ba25b8dd38d6875e
parent0d34097f66831843a0e27f65fed23c41d07d44aa
btrfs: make btrfs_free_stale_devices() to match the path

The btrfs_free_stale_devices() is updated to match for the given device
path and delete it. (It searches for only unmounted list of devices.)
Also drop the comment about different path being used for the same
device, since now we will have cli to clean any device that's not a
concern any more.

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