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, 14 Feb 2022 15:35:59 +0000 (16:35 +0100)
commit4b84588893b9cbae26aaa078e24dfb2cf46d41e1
tree8d2a683e5082ed6dd69ad90b39488055a6935aeb
parent5d560859741e63a5528d68ba5be8f697a9c563d7
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