btrfs: make btrfs_free_stale_devices() argument optional
authorAnand Jain <Anand.Jain@oracle.com>
Thu, 18 Jan 2018 14:00:35 +0000 (22:00 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 19:25:48 +0000 (20:25 +0100)
commit522f1b45e41d893e4d1debd7f80c1e25e060c137
tree1a39dffd709f946d5f2b6c2d197c37888f39357d
parent38cf665d338fca33af4b16f9ec7cad6637fc0fec
btrfs: make btrfs_free_stale_devices() argument optional

This updates btrfs_free_stale_devices() helper function to delete all
unmouted devices, when arg is NULL.

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