summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/tests.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-12-01 18:23:55 +0100
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 23:08:48 +0200
commitec3d21a9f25d495e0b6042a25f27cc711390195b (patch)
tree3cb1ae82276a5ca39a055adb71240bcf3db7801a /fs/bcachefs/tests.h
parentbcachefs: Journal pin refactoring (diff)
downloadlinux-ec3d21a9f25d495e0b6042a25f27cc711390195b.tar.xz
linux-ec3d21a9f25d495e0b6042a25f27cc711390195b.zip
bcachefs: Add error handling to unit & perf tests
This way, these tests can be used with tests that inject IO errors and shut down the filesystem. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/tests.h')
-rw-r--r--fs/bcachefs/tests.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/tests.h b/fs/bcachefs/tests.h
index 551d0764225e..c73b18aea7e0 100644
--- a/fs/bcachefs/tests.h
+++ b/fs/bcachefs/tests.h
@@ -6,7 +6,7 @@ struct bch_fs;
#ifdef CONFIG_BCACHEFS_TESTS
-void bch2_btree_perf_test(struct bch_fs *, const char *, u64, unsigned);
+int bch2_btree_perf_test(struct bch_fs *, const char *, u64, unsigned);
#else