diff options
| author | 2018-05-11 13:35:26 +0800 | |
|---|---|---|
| committer | 2018-05-28 18:07:36 +0200 | |
| commit | 069ec957c35e03ba3beb40973379899cfdbf1ee1 (patch) | |
| tree | d70836a06d9d96d1877b5de23747ac04e918be46 /fs/btrfs/tree-log.c | |
| parent | btrfs: Move btrfs_check_super_valid() to avoid forward declaration (diff) | |
| download | linux-dev-069ec957c35e03ba3beb40973379899cfdbf1ee1.tar.xz linux-dev-069ec957c35e03ba3beb40973379899cfdbf1ee1.zip | |
btrfs: Refactor btrfs_check_super_valid
Refactor btrfs_check_super_valid:
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()
Later write time check can reuse it, and if needed, we could also
use validate_super() to check each super block.
3) Add more comments about btrfs_validate_mount_super()
Mostly about what it doesn't check and when it should be called.
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ rename to validate_super ]
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-log.c')
0 files changed, 0 insertions, 0 deletions
