mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 14:12:07 +02:00
bcachefs: delete dead code
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
d985e63dba
commit
1f282f1ee0
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user