summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/tests.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-12-01 12:23:55 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:48 -0400
commitec3d21a9f25d495e0b6042a25f27cc711390195b (patch)
tree3cb1ae82276a5ca39a055adb71240bcf3db7801a /fs/bcachefs/tests.h
parent231db03c571ba3065a32999f4f76a5482c6557e7 (diff)
downloadlinux-stable-ec3d21a9f25d495e0b6042a25f27cc711390195b.tar.gz
linux-stable-ec3d21a9f25d495e0b6042a25f27cc711390195b.tar.bz2
linux-stable-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