]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0608c31a536f939d1b64fbcf70b8d17ed8164a8e
tree729ff993591569e721dce39d4647db885322eb30
parent2632971a895fb7fa31a19bf505086d3ef0fd579b
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