aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorQu Wenruo <[email protected]>2018-09-28 07:59:34 +0800
committerDavid Sterba <[email protected]>2018-10-15 17:23:37 +0200
commitf556faa46eb4e96d0d0772e74ecf66781e132f72 (patch)
tree2022f3fe4cc8829472e8f0aef8d5ad362f657c59 /tools/perf/scripts/python
parent3d0174f78e72301324a5b0ba7d67676474e36fff (diff)
btrfs: tree-checker: Check level for leaves and nodes
Although we have tree level check at tree read runtime, it's completely based on its parent level. We still need to do accurate level check to avoid invalid tree blocks sneak into kernel space. The check itself is simple, for leaf its level should always be 0. For nodes its level should be in range [1, BTRFS_MAX_LEVEL - 1]. Signed-off-by: Qu Wenruo <[email protected]> Reviewed-by: Su Yue <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions