summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-11-12 03:53:30 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2024-12-21 01:36:17 -0500
commit1f282f1ee0f80e40e6fb2ecd2dabbfb24a6d9e1f (patch)
tree712c497f3d3572e78cf52d6ee902eadd65bf423f
parentd985e63dba24bcb0ede1e8975dc67b9c6a2b2c3b (diff)
bcachefs: delete dead code
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-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 6551ada926b6..81af0b8ddb52 100644
--- a/fs/bcachefs/error.h
+++ b/fs/bcachefs/error.h
@@ -55,26 +55,6 @@ int bch2_topology_error(struct bch_fs *);
})
/*
- * Later we might want to mark only the particular device inconsistent, not the
- * entire filesystem:
- */
-
-#define bch2_dev_inconsistent(ca, ...) \
-do { \
- bch_err(ca, __VA_ARGS__); \
- bch2_inconsistent_error((ca)->fs); \
-} while (0)
-
-#define bch2_dev_inconsistent_on(cond, ca, ...) \
-({ \
- bool _ret = unlikely(!!(cond)); \
- \
- if (_ret) \
- bch2_dev_inconsistent(ca, __VA_ARGS__); \
- _ret; \
-})
-
-/*
* When a transaction update discovers or is causing a fs inconsistency, it's
* helpful to also dump the pending updates:
*/