diff options
author | 2024-01-11 16:04:26 +0000 | |
---|---|---|
committer | 2024-05-07 21:31:03 +0200 | |
commit | 071533da5f2e7623089e69252bd949610d6c8194 (patch) | |
tree | 42e9b8a06a5661d45fd01dd9356dcb29888150d4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: pass an inode to btrfs_add_extent_mapping() (diff) | |
download | wireguard-linux-071533da5f2e7623089e69252bd949610d6c8194.tar.xz wireguard-linux-071533da5f2e7623089e69252bd949610d6c8194.zip |
btrfs: tests: error out on unexpected extent map reference count
In the extent map self tests, when freeing all extent maps from a test
extent map tree we are not expecting to find any extent map with a
reference count different from 1 (the tree reference). If we find any,
we just log a message but we don't fail the test, which makes it very easy
to miss any bug/regression - no one reads the test messages unless a test
fails. So change the behaviour to make a test fail if we find an extent
map in the tree with a reference count different from 1. Make the failure
happen only after removing all extent maps, so that we don't leak memory.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions