Skip to content

btrfs-progs: add eb leak detection and fixes

Josef Bacik linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3btrfs-progs: cleanup dirty buffers on transaction abortkernel-shared/transaction.c+26 -191 reply
2/3btrfs-progs: properly cleanup aborted transactions in checkcheck/main.c+8 -22 replies
3/3btrfs-progs: add extent buffer leak detection to make testtests/common+61 -474 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchQu Wenruo
1/3
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] btrfs-progs: add eb leak detection and fixes

Hello,

I introduced an EB leak that we only discovered when we started running fstests with my code applied to the btrfs-progs devel branch. We really want to detect this before we start using this code for fstests, so update all the run_check related helpers to use a helper that will check for extent buffer leaks and fail accordingly. This will allow developers to discover they've introduced a problem when they run make test after their changes.

This functionality of course uncovered a few leaks that currently exist in btrfs-progs, so there are two fixes that precede the leak detection work in order to make sure we are clean from the leak detection commit ondwards. Thanks,

Josef

Josef Bacik (3):
btrfs-progs: cleanup dirty buffers on transaction abort
btrfs-progs: properly cleanup aborted transactions in check
btrfs-progs: add extent buffer leak detection to make test

 check/main.c                |  10 +++-
 kernel-shared/transaction.c |  45 ++++++++-------
 tests/common                | 108 ++++++++++++++++++++----------------
 3 files changed, 95 insertions(+), 68 deletions(-)
Signature · 1 line
2.41.0