summaryrefslogtreecommitdiff
path: root/libbcachefs/error.h
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/error.h')
-rw-r--r--libbcachefs/error.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbcachefs/error.h b/libbcachefs/error.h
index ac3e96d2..ababaee0 100644
--- a/libbcachefs/error.h
+++ b/libbcachefs/error.h
@@ -45,13 +45,13 @@ do { \
* BCH_ON_ERROR_CONTINUE mode
*/
-void bch2_inconsistent_error(struct bch_fs *);
+bool bch2_inconsistent_error(struct bch_fs *);
#define bch2_fs_inconsistent(c, ...) \
-do { \
+({ \
bch_err(c, __VA_ARGS__); \
bch2_inconsistent_error(c); \
-} while (0)
+})
#define bch2_fs_inconsistent_on(cond, c, ...) \
({ \