btrfs: use dev_t to match device in device_matched
authorAnand Jain <anand.jain@oracle.com>
Wed, 12 Jan 2022 05:06:02 +0000 (13:06 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 Feb 2022 15:19:48 +0000 (16:19 +0100)
commitfc3fc16e8c5609ce8c5516ed84dfd5a9c9f50e66
tree75885ae98699c5c0d710fd52aeaab135552d13e8
parent7380537ce730e5d921a979a58174289b8c5ad6fb
btrfs: use dev_t to match device in device_matched

Commit "btrfs: add device major-minor info in the struct btrfs_device"
saved the device major-minor number in the struct btrfs_device upon
discovering it.

So no need to lookup_bdev() again just match, which means
device_matched() can go away.

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