aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_helpers_doc.py
diff options
context:
space:
mode:
authorNikolay Borisov <[email protected]>2019-11-19 14:05:53 +0200
committerDavid Sterba <[email protected]>2020-01-23 17:24:35 +0100
commit1776ad172e1ff09d4aa57daac74c56b4e1b0c636 (patch)
tree4c8dcce97a318dc47ed420bd9c491a19fc48c817 /scripts/bpf_helpers_doc.py
parentbf2e2eb060fa29dd892fa42dd0a03f130815acf0 (diff)
btrfs: Refactor btrfs_rmap_block to improve readability
Move variables to appropriate scope. Remove last BUG_ON in the function and rework error handling accordingly. Make the duplicate detection code more straightforward. Use in_range macro. And give variables more descriptive name by explicitly distinguishing between IO stripe size (size recorded in the chunk item) and data stripe size (the size of an actual stripe, constituting a logical chunk/block group). Signed-off-by: Nikolay Borisov <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions