btrfs: selftests: dump extent io tree if extent-io-tree test failed
authorQu Wenruo <wqu@suse.com>
Thu, 30 Dec 2021 08:45:13 +0000 (16:45 +0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 7 Jan 2022 13:18:27 +0000 (14:18 +0100)
commit856e47946c6da280816ed9b9c32083c102838ba0
tree729ff993591569e721dce39d4647db885322eb30
parent2ae8ae3d3def4c3ba73a58cc2531c42f0916f14e
btrfs: selftests: dump extent io tree if extent-io-tree test failed

When code modifying extent-io-tree get modified and got that selftest
failed, it can take some time to pin down the cause.

To make it easier to expose the problem, dump the extent io tree if the
selftest failed.

This can save developers debug time, especially since the selftest we
can not use the trace events, thus have to manually add debug trace
points.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tests/extent-io-tests.c