]> asedeno.scripts.mit.edu Git - linux.git/commit
btrfs: make btrfs_free_stale_device() to iterate all stales
authorAnand Jain <Anand.Jain@oracle.com>
Thu, 18 Jan 2018 14:00:34 +0000 (22:00 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 19:25:47 +0000 (20:25 +0100)
commit38cf665d338fca33af4b16f9ec7cad6637fc0fec
tree7090eab239f1d9fc9c2f1ba0bf3743f961bb5a04
parenta848b3e547d167692483ff08622bb56dd3e4a9d6
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>
fs/btrfs/volumes.c