]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit05f3adf886602e0d2f6c6e3599e9d2d45d6cd86e
tree621d898b0b5ce23471517097ba25b8dd38d6875e
parent120208ca385ee647dfede157c9f495956f8faa79
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