btrfs-progs: add eb leak detection and fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | btrfs-progs: cleanup dirty buffers on transaction abortkernel-shared/ | +26 | 1 reply | |
| 2/3 | btrfs-progs: properly cleanup aborted transactions in checkcheck/ | +8 | 2 replies | |
| 3/3 | btrfs-progs: add extent buffer leak detection to make testtests/ | +61 | 4 replies |
Reviews trailers per patch
1 of 3 patches has a Reviewed-by or Acked-by.
| Patch | Qu Wenruo |
|---|---|
| 1/3 | |
| 2/3 | R-b |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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