diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-09-13 20:39:31 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-09-14 15:50:40 -0400 |
commit | 2aebf1ae7ff7d28860a0a5a5683a56f33956cfd1 (patch) | |
tree | 2310ce7bea600e515c17c2b80a0cc5864753d922 | |
parent | c7c35ff6efaa2a877e2b605a0dc3d9aac4bfe3c8 (diff) |
bcachefs: Kill other unreachable() uses
Per previous commit, bare unreachable() considered harmful, convert to
BUG()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/bset.c | 2 | ||||
-rw-r--r-- | fs/bcachefs/ec.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/bset.c b/fs/bcachefs/bset.c index cff7486ef446..bb73ba9017b0 100644 --- a/fs/bcachefs/bset.c +++ b/fs/bcachefs/bset.c @@ -1189,7 +1189,7 @@ struct bkey_packed *__bch2_bset_search(struct btree *b, case BSET_RO_AUX_TREE: return bset_search_tree(b, t, search, lossy_packed_search); default: - unreachable(); + BUG(); } } diff --git a/fs/bcachefs/ec.h b/fs/bcachefs/ec.h index 885ae5d51655..966d165a3b66 100644 --- a/fs/bcachefs/ec.h +++ b/fs/bcachefs/ec.h @@ -240,7 +240,7 @@ static inline void ec_stripe_new_put(struct bch_fs *c, struct ec_stripe_new *s, bch2_ec_do_stripe_creates(c); break; default: - unreachable(); + BUG(); } } |