]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite95f28516a063031334b7a687f35212317833ca3
tree32bf1dbe41dfef0330172eec32fa13c4f952037b
parent9c123fc7f2432522ec0e153acc621b7a0ebedec1
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