]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jul 2022 14:34:59 +0000 (16:34 +0200)
commit07717ea4b842649ef68550d433748025771288c9
tree796d9d19065177fc9d2ea105d7b7286634458d33
parent334f336c42abbe6e8e23e0f2a96012c53080d92c
btrfs: add a btrfs_get_dev_args_from_path helper

[ Upstream commit 00357dc29dd0b09806b4b19a5778d70e43e7ead5 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/btrfs/volumes.c
fs/btrfs/volumes.h