bcachefs: delete dead code
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 12 Nov 2024 08:53:30 +0000 (03:53 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:17 +0000 (01:36 -0500)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/error.h

index 6551ada926b607b5d49f901402c26e314fbc45a4..81af0b8ddb5209d3e4091ef00017aa9aacfd49df 100644 (file)
@@ -54,26 +54,6 @@ int bch2_topology_error(struct bch_fs *);
        _ret;                                                           \
 })
 
-/*
- * 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: