OSDN Git Service

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 Mar 2022 12:13:47 +0000 (13:13 +0100)
commit330a5bf4551784f2f0baef27f2c78550e40fc8a0
tree78844d6fc9354aa3372e69ced58b18df0b653cdc
parent4889bc05a96e039b055bbd11438c40bf956f057b
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