bcachefs: Kill other unreachable() uses

Per previous commit, bare unreachable() considered harmful, convert to
BUG()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet
2023-09-13 20:39:31 -04:00
parent 3764647b25
commit 439c172bc7
2 changed files with 2 additions and 2 deletions

View File

@@ -1189,7 +1189,7 @@ struct bkey_packed *__bch2_bset_search(struct btree *b,
case BSET_RO_AUX_TREE: case BSET_RO_AUX_TREE:
return bset_search_tree(b, t, search, lossy_packed_search); return bset_search_tree(b, t, search, lossy_packed_search);
default: default:
unreachable(); BUG();
} }
} }

View File

@@ -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); bch2_ec_do_stripe_creates(c);
break; break;
default: default:
unreachable(); BUG();
} }
} }