diff options
author | Haisu Wang <haisuwang@tencent.com> | 2024-10-25 09:54:41 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-11-11 16:34:22 +0300 |
commit | 5599f39356c6ec73d2015ae88286382d1034ef0d (patch) | |
tree | 6c0b4a037a3cc3c6efc916191a2f8390330c4111 /tools/perf/scripts/python/task-analyzer.py | |
parent | 7c855e16ab72596d771355050ffe026e6b99f91c (diff) | |
download | linux-5599f39356c6ec73d2015ae88286382d1034ef0d.tar.xz |
btrfs: simplify range tracking in cow_file_range()
Simplify tracking of the range processed by using cur_alloc_size only to
store the reserved part that may fail to the allocated extent. Remove
the ram_size as well since it is always equal to cur_alloc_size in the
context. Advance the start in normal path until extent allocation
succeeds and keep the start unchanged in the error handling path.
Passed the fstest generic/475 test for a hundred times with quota
enabled. And a modified generic/475 test by removing the sleep time
for a hundred times. About one tenth of the tests do enter the error
handling path due to fail to reserve extent.
Suggested-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Haisu Wang <haisuwang@tencent.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions