aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/tree-checker.c
AgeCommit message (Collapse)AuthorFilesLines
2017-10-30btrfs: tree-checker: Enhance btrfs_check_node outputQu Wenruo1-7/+61
Use inline function to replace macro since we don't need stringification. (Macro still exists until all callers get updated) And add more info about the error, and replace EIO with EUCLEAN. For nr_items error, report if it's too large or too small, and output the valid value range. For node block pointer, added a new alignment checker. For key order, also output the next key to make the problem more obvious. Signed-off-by: Qu Wenruo <[email protected]> [ wording adjustments, unindented long strings ] Signed-off-by: David Sterba <[email protected]>
2017-10-30btrfs: Move leaf and node validation checker to tree-checker.cQu Wenruo1-0/+309
It's no doubt the comprehensive tree block checker will become larger, so moving them into their own files is quite reasonable. Signed-off-by: Qu Wenruo <[email protected]> [ wording adjustments ] Signed-off-by: David Sterba <[email protected]>