]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb0214d26fee2c9f8da9c8549294f7eaac2699056
tree78844d6fc9354aa3372e69ced58b18df0b653cdc
parent2f2bc3a1132008ae4fad8c0720d11445513c8688
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