]> 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)
commit168227cd0b77c15ad3bfa89d90cc101892c6b5ba
tree32bf1dbe41dfef0330172eec32fa13c4f952037b
parent64a3ec26da15b3677dfbf0b0bb34c9a580da9414
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