On Thu, Jul 12, 2018 at 02:23:15PM +0800, Gu Jinxiang wrote: > fs_devices is always passed to btrfs_scan_one_device which > overrides it. And in the call stack below fs_devices is passed to > btrfs_scan_one_device from btrfs_mount_root. > And in btrfs_mount_root the output fs_devices of this call stack > is not used. > btrfs_mount_root > -> btrfs_parse_early_options > ->btrfs_scan_one_device > So, there is no necessary to pass fs_devices from btrfs_mount_root, > use a local variable in btrfs_parse_early_options is enough. > > Signed-off-by: Gu Jinxiang <gujx@xxxxxxxxxxxxxx> > Reviewed-by: Anand Jain <Anand.Jain@xxxxxxxxxx> Please send cover letter for patch series (ie. > 1 patch). I've applied both on top of recent patches that update some code around device scanning and there were conflicts with patch 2, but simple to fix. Please check the result in misc-next once it's pushed, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
