commit | 4306a97449f9a0f9e5229af7889d4401315355aa | [log] [tgz] |
---|---|---|
author | Anand Jain <anand.jain@oracle.com> | Tue May 29 12:28:37 2018 +0800 |
committer | David Sterba <dsterba@suse.com> | Mon Aug 06 13:12:46 2018 +0200 |
tree | e235494ba6769ec625db65560f73b877688e9bc5 | |
parent | 959b1c04675735aa51b9a7b3e28963c4141bf3e7 [diff] |
btrfs: do btrfs_free_stale_devices outside of device_list_add btrfs_free_stale_devices() looks for device path reused for another filesystem, and deletes the older fs_devices::device entry. In preparation to handle locking in device_list_add, move btrfs_free_stale_devices outside as these two functions serve a different purpose. Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>