Skip to content

Commit

Permalink
bcachefs: delete dead code
Browse files Browse the repository at this point in the history
Signed-off-by: Kent Overstreet <[email protected]>
  • Loading branch information
Kent Overstreet committed Nov 12, 2024
1 parent 7391aa8 commit 48c34ec
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions fs/bcachefs/error.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 48c34ec

Please sign in to comment.