OSDN Git Service

btrfs: add a btrfs_get_dev_args_from_path helper
authorJosef Bacik <josef@toxicpanda.com>
Tue, 5 Oct 2021 20:12:43 +0000 (16:12 -0400)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Oct 2021 17:08:07 +0000 (19:08 +0200)
commitfaa775c41d655a4786e9d53cb075a77bb5a75f66
tree72087feb56f555f84f6632d57650b84049482809
parent562d7b1512f7369a19bca2883e2e8672d78f0481
btrfs: add a btrfs_get_dev_args_from_path helper

We are going to want to populate our device lookup args outside of any
locks and then do the actual device lookup later, so add a helper to do
this work and make btrfs_find_device_by_devspec() use this helper for
now.

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