]> 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)
commit12d78daac152a1e2d2c5b5bbac2409279dbfc804
tree621d898b0b5ce23471517097ba25b8dd38d6875e
parent60f2a54e3f0f6c049b1dbf8b2557285b8475f75b
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