btrfs: Move btrfs_check_super_valid() to avoid forward declaration
authorQu Wenruo <wqu@suse.com>
Fri, 11 May 2018 05:35:25 +0000 (13:35 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 16:07:36 +0000 (18:07 +0200)
commit21a852b01820bdb543df2728cf2f39ecf565255d
treef26aefee48ee6c5a6ee2f3f13dcea4d41a3294ef
parentffa9a9ef2f08c613a798837267e0b4f6c89bf9ad
btrfs: Move btrfs_check_super_valid() to avoid forward declaration

Move btrfs_check_super_valid() before its single caller to avoid forward
declaration.

Though such code motion is not recommended as it pollutes git history,
in this case the following patches would need to add new forward
declarations for static functions that we want to avoid.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c