diff options
| author | Anand Jain <anand.jain@oracle.com> | 2018-02-15 18:07:59 +0800 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2018-03-26 15:09:35 +0200 |
| commit | 566b1760b42be7c99c02e894b1ec9a707c2e83d1 (patch) | |
| tree | 6cee8bc71b76d1b0c6e43de1f78f28ebaa25cae7 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | btrfs: cow_file_range() num_bytes and disk_num_bytes are same (diff) | |
| download | linux-566b1760b42be7c99c02e894b1ec9a707c2e83d1.tar.gz linux-566b1760b42be7c99c02e894b1ec9a707c2e83d1.zip | |
btrfs: use ASSERT to report logical error in cow_file_range()
Use ASSERT to report logical error in cow_file_range(), also move it a
bit closer to when the num_bytes is derived.
The extent start could be (u64)-1 in some cases, the assert should catch
that we do not accidentally pass it to cow_file_range.
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
