summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/tasks.py
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2018-10-11 22:54:22 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-13 22:12:58 +0300
commit13d6628c019d7d3ddd749d09ffb4152ae0ad8e8b (patch)
tree2daba0a93d7342e8f285fe969279f5a64b456cce /scripts/gdb/linux/tasks.py
parent68c7db7c8f76e80d2128da46249561208f51d988 (diff)
downloadlinux-13d6628c019d7d3ddd749d09ffb4152ae0ad8e8b.tar.xz
btrfs: fix insert_reserved error handling
commit 80ee54bfe8a3850015585ebc84e8d207fcae6831 upstream. 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: stable@vger.kernel.org # 4.18+ Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions