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 Mar 2022 12:13:47 +0000 (13:13 +0100)
commit16cab91a0c8fea50a03ef9c49ca829e6c0c4cf66
tree32bf1dbe41dfef0330172eec32fa13c4f952037b
parent770c79fb65506fc7c16459855c3839429f46cb32
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