summaryrefslogtreecommitdiff
path: root/arch/csky/include
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2024-01-11 19:04:26 +0300
committerDavid Sterba <dsterba@suse.com>2024-05-07 22:31:03 +0300
commit071533da5f2e7623089e69252bd949610d6c8194 (patch)
tree42e9b8a06a5661d45fd01dd9356dcb29888150d4 /arch/csky/include
parent0a308f8095f74c732e055c3d9f897d56e8ed6e82 (diff)
downloadlinux-071533da5f2e7623089e69252bd949610d6c8194.tar.xz
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 'arch/csky/include')
0 files changed, 0 insertions, 0 deletions