diff options
| author | Johannes Thumshirn <[email protected]> | 2019-02-25 14:24:15 +0100 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2019-04-29 19:02:17 +0200 |
| commit | 2996e1f8bcadf0436cc67b63af01523f6cf5d43f (patch) | |
| tree | 76806b250a9b1ba2b7e694f225488e2813910dd2 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 37624b58542fb9f2d9a70e6ea006ef8a5f66c30b (diff) | |
btrfs: factor our read/write stage off csum_tree_block into its callers
Currently csum_tree_block() does two things, first it as it's name
suggests it calculates the checksum for a tree-block. But it also writes
this checksum to disk or reads an extent_buffer from disk and compares the
checksum with the calculated checksum, depending on the verify argument.
Furthermore one of the two callers passes in '1' for the verify argument,
the other one passes in '0'.
For clarity and less layering violations, factor out the second stage in
csum_tree_block()'s callers.
Suggested-by: Nikolay Borisov <[email protected]>
Reviewed-by: Qu Wenruo <[email protected]>
Reviewed-by: Nikolay Borisov <[email protected]>
Signed-off-by: Johannes Thumshirn <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions