Re: [PATCH v3 2/3] btrfs: Refactor btrfs_check_super_valid()

2018-05-11 Thread David Sterba
On Fri, May 11, 2018 at 01:35:26PM +0800, Qu Wenruo wrote: > Refactor btrfs_check_super_valid() by the ways: > > 1) Rename it to btrfs_validate_mount_super() >Now it's more obvious when the function should be called. > > 2) Extract core check routine into __validate_super() >So later

[PATCH v3 2/3] btrfs: Refactor btrfs_check_super_valid()

2018-05-10 Thread Qu Wenruo
Refactor btrfs_check_super_valid() by the ways: 1) Rename it to btrfs_validate_mount_super() Now it's more obvious when the function should be called. 2) Extract core check routine into __validate_super() So later write time check can reuse it, and if needed, we could also use