On Thu, Jan 17, 2019 at 11:32:30PM +0800, Anand Jain wrote: > 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() The function takes a path so it's search by path, as the name says, I don't think that needs to change. And even this is a helper, the btrfs_ prefix is useful in case there's something stuck inside the block layer functions that get called later so it's obvious on the stack.
