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, 14 Feb 2022 15:35:59 +0000 (16:35 +0100)
commit150f28898b96b1f3e03356c2f221ead7722cc5ef
tree8dc8fe21f2e6070ba3ba67569373237b1c29bd75
parent120d24ba411a8feabfa9318ac3953150bfd75668
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