btrfs_find_device_by_path() is a helper function, drop the btrfs prefix
and the suffix _path is too generic, in fact as it reads superblock to
find the btrfs_device, so rename it to find_device_by_superblock()
Signed-off-by: Anand Jain <anand.jain@xxxxxxxxxx>
---
fs/btrfs/volumes.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 8b5201c734b9..a307d76c8926 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -2399,7 +2399,7 @@ void btrfs_destroy_dev_replace_tgtdev(struct btrfs_device *tgtdev)
call_rcu(&tgtdev->rcu, free_device_rcu);
}
-static struct btrfs_device *btrfs_find_device_by_path(
+static struct btrfs_device *find_device_by_superblock(
struct btrfs_fs_info *fs_info, const char *device_path)
{
int ret = 0;
@@ -2460,7 +2460,7 @@ struct btrfs_device *btrfs_find_device_by_devspec(
return ERR_PTR(-ENOENT);
}
- return btrfs_find_device_by_path(fs_info, device_path);
+ return find_device_by_superblock(fs_info, device_path);
}
/*
--
1.8.3.1