Re: [PATCH RESEND] btrfs: delete function btrfs_close_extra_devices()

2018-02-20 Thread Anand Jain
On 02/20/2018 12:53 AM, David Sterba wrote: On Thu, Feb 15, 2018 at 01:02:24PM +0800, Anand Jain wrote: btrfs_close_extra_devices() is not exactly about just closing the opened devices, but its also about free-ing the stale devices which may have scanned into the btrfs_fs_devices::dev_list.

Re: [PATCH RESEND] btrfs: delete function btrfs_close_extra_devices()

2018-02-19 Thread David Sterba
On Thu, Feb 15, 2018 at 01:02:24PM +0800, Anand Jain wrote: > btrfs_close_extra_devices() is not exactly about just closing the opened > devices, but its also about free-ing the stale devices which may have > scanned into the btrfs_fs_devices::dev_list. The way it picks devices to > be freed is by