btrfs: match stale devices by dev_t
authorAnand Jain <anand.jain@oracle.com>
Wed, 12 Jan 2022 05:06:00 +0000 (13:06 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 Feb 2022 15:19:47 +0000 (16:19 +0100)
commitb4813c7f0d49fbfc351d953bf8b3bad4005c02e0
tree5d05aa03847cf974be143898eb8f833347aacf39
parent76c94fc3f62b23f739692ebd40e2c526689b6677
btrfs: match stale devices by dev_t

After the commit "btrfs: harden identification of the stale device", we
don't have to match the device path anymore. Instead, we match the dev_t.
So pass in the dev_t instead of the device path, in the call chain
btrfs_forget_devices()->btrfs_free_stale_devices().

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/super.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h