]> 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)
commit0d33b5b398541f898dbe14513c20290044fd7946
treee123f03b2136f2cf5fa7d35f96b86a22549c7ce6
parentfcec279720c4cb7373f9577f78b8f3dfa03155f2
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