diff options
| author | 2015-11-27 16:12:00 +0000 | |
|---|---|---|
| committer | 2015-12-17 10:59:48 +0000 | |
| commit | 7785a663c4beebdafeb300caf2818e7e6474abd1 (patch) | |
| tree | fea9a8efe93a6cedb875f325b735be7ce053bcd1 /scripts/patch-kernel | |
| parent | Btrfs: fix race when finishing dev replace leading to transaction abort (diff) | |
| download | linux-dev-7785a663c4beebdafeb300caf2818e7e6474abd1.tar.xz linux-dev-7785a663c4beebdafeb300caf2818e7e6474abd1.zip | |
Btrfs: fix memory leaks after transaction is aborted
When a transaction is aborted, or its commit fails before writing the new
superblock and calling btrfs_finish_extent_commit(), we leak reference
counts on the block groups attached to the transaction's delete_bgs list,
because btrfs_finish_extent_commit() is never called for those two cases.
Fix this by dropping their references at btrfs_put_transaction(), which
is called when transactions are aborted (by making the transaction kthread
commit the transaction) or if their commits fail.
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
