summaryrefslogtreecommitdiff
path: root/libbcachefs/error.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-01-04 19:24:13 -0500
committerKent Overstreet <kent.overstreet@gmail.com>2020-01-04 19:24:13 -0500
commit304691592738dc272f4150107b54a53ab43fc8be (patch)
tree2ea58d8794c4b41dc66a0add3690c59c583de207 /libbcachefs/error.h
parentabbe66b6a5051027fd63b2a4cd4cb1d4b09410f6 (diff)
Update bcachefs sources to c9eb15545d bcachefs: Don't call trans_iter_put() on error pointer
Diffstat (limited to 'libbcachefs/error.h')
-rw-r--r--libbcachefs/error.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/libbcachefs/error.h b/libbcachefs/error.h
index 7dcb0f65..de319794 100644
--- a/libbcachefs/error.h
+++ b/libbcachefs/error.h
@@ -17,26 +17,6 @@ struct work_struct;
/* Error messages: */
/*
- * Very fatal logic/inconsistency errors: these indicate that we've majorly
- * screwed up at runtime, i.e. it's not likely that it was just caused by the
- * data on disk being inconsistent. These BUG():
- *
- * XXX: audit and convert to inconsistent() checks
- */
-
-#define bch2_fs_bug(c, ...) \
-do { \
- bch_err(c, __VA_ARGS__); \
- BUG(); \
-} while (0)
-
-#define bch2_fs_bug_on(cond, c, ...) \
-do { \
- if (cond) \
- bch2_fs_bug(c, __VA_ARGS__); \
-} while (0)
-
-/*
* Inconsistency errors: The on disk data is inconsistent. If these occur during
* initial recovery, they don't indicate a bug in the running code - we walk all
* the metadata before modifying anything. If they occur at runtime, they