diff options
| author | Josef Bacik <[email protected]> | 2018-10-11 19:54:22 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2018-10-19 10:20:03 +0000 |
| commit | 80ee54bfe8a3850015585ebc84e8d207fcae6831 (patch) | |
| tree | 51b838c96edf35674f5de3bb0f16c317b76694f2 /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | btrfs: only free reserved extent if we didn't insert it (diff) | |
| download | kernel-80ee54bfe8a3850015585ebc84e8d207fcae6831.tar.gz kernel-80ee54bfe8a3850015585ebc84e8d207fcae6831.zip | |
btrfs: fix insert_reserved error handling
We were not handling the reserved byte accounting properly for data
references. Metadata was fine, if it errored out the error paths would
free the bytes_reserved count and pin the extent, but it even missed one
of the error cases. So instead move this handling up into
run_one_delayed_ref so we are sure that both cases are properly cleaned
up in case of a transaction abort.
CC: [email protected] # 4.18+
Reviewed-by: Nikolay Borisov <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
