commit | 38cf665d338fca33af4b16f9ec7cad6637fc0fec | [log] [tgz] |
---|---|---|
author | Anand Jain <Anand.Jain@oracle.com> | Thu Jan 18 22:00:34 2018 +0800 |
committer | David Sterba <dsterba@suse.com> | Mon Jan 22 20:25:47 2018 +0100 |
tree | 7090eab239f1d9fc9c2f1ba0bf3743f961bb5a04 | |
parent | a848b3e547d167692483ff08622bb56dd3e4a9d6 [diff] |
btrfs: make btrfs_free_stale_device() to iterate all stales Let the list iterator iterate further and find other stale devices and delete it. This is in preparation to add support for user land request-able stale devices cleanup. Also rename btrfs_free_stale_device() to btrfs_free_stale_devices(). Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: Josef Bacik <jbacik@fb.com> Signed-off-by: David Sterba <dsterba@suse.com>