summaryrefslogtreecommitdiff
path: root/fs/bcachefs/error.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-01-05 00:09:52 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:08:34 +0300
commite7808eef95213678a5c4d009aef636e9037588fb (patch)
treeb87a3de82e1f2dc77f7585b1d7b9e2b87ccb4d1a /fs/bcachefs/error.h
parent31ba2cd33037e1011947b7abbfd70921c735841d (diff)
downloadlinux-e7808eef95213678a5c4d009aef636e9037588fb.tar.xz
bcachefs: Kill bch2_fs_bug()
These have all been converted to fsck/inconsistent errors Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/error.h')
-rw-r--r--fs/bcachefs/error.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/fs/bcachefs/error.h b/fs/bcachefs/error.h
index 7dcb0f6552fc..de319794ccd1 100644
--- a/fs/bcachefs/error.h
+++ b/fs/bcachefs/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