]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: handle device lookup with btrfs_dev_lookup_args
authorJosef Bacik <josef@toxicpanda.com>
Tue, 5 Oct 2021 20:12:42 +0000 (16:12 -0400)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Oct 2021 17:08:07 +0000 (19:08 +0200)
commit562d7b1512f7369a19bca2883e2e8672d78f0481
treee123f03b2136f2cf5fa7d35f96b86a22549c7ce6
parent8b41393fe7c3b180abadc26856fb653014733bb9
btrfs: handle device lookup with btrfs_dev_lookup_args

We have a lot of device lookup functions that all do something slightly
different.  Clean this up by adding a struct to hold the different
lookup criteria, and then pass this around to btrfs_find_device() so it
can do the proper matching based on the lookup criteria.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/dev-replace.c
fs/btrfs/ioctl.c
fs/btrfs/scrub.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h