btrfs-progs/check
Josef Bacik 855622bd94 btrfs-progs: properly cleanup aborted transactions in check
There are several places that we call btrfs_abort_transaction() in a
failure case, but never call btrfs_commit_transaction().  This leaks the
trans handle and the associated extent buffers and such.  Fix all these
sites by making sure we call btrfs_commit_transaction() after we call
btrfs_abort_transaction() to make sure all the appropriate cleanup is
done.  This gets rid of the leaked extent buffer errors.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2023-10-03 01:11:57 +02:00
..
clear-cache.c btrfs-progs: clean up includes, using include-what-you-use 2023-10-03 01:11:57 +02:00
clear-cache.h btrfs-progs: tune: add --convert-to-free-space-tree option 2023-05-26 18:02:27 +02:00
common.h btrfs-progs: sync extent-io-tree.[ch] and misc.h from the kernel 2023-05-26 18:02:29 +02:00
main.c btrfs-progs: properly cleanup aborted transactions in check 2023-10-03 01:11:57 +02:00
mode-common.c btrfs-progs: clean up includes, using include-what-you-use 2023-10-03 01:11:57 +02:00
mode-common.h btrfs-progs: clean up includes, using include-what-you-use 2023-10-03 01:11:57 +02:00
mode-lowmem.c btrfs-progs: clean up includes, using include-what-you-use 2023-10-03 01:11:57 +02:00
mode-lowmem.h btrfs-progs: check: update include lists 2022-10-11 09:06:12 +02:00
mode-original.h btrfs-progs: check: add check for metadata level mismatch 2023-09-12 23:18:34 +02:00
qgroup-verify.c btrfs-progs: clean up includes, using include-what-you-use 2023-10-03 01:11:57 +02:00
qgroup-verify.h btrfs-progs: check: update include lists 2022-10-11 09:06:12 +02:00
repair.c btrfs-progs: clean up includes, using include-what-you-use 2023-10-03 01:11:57 +02:00
repair.h btrfs-progs: clean up includes, using include-what-you-use 2023-10-03 01:11:57 +02:00