Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bcachefs: Kill other unreachable() uses

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

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>

+2 -2
+1 -1
fs/bcachefs/bset.c
··· 1189 1189 case BSET_RO_AUX_TREE: 1190 1190 return bset_search_tree(b, t, search, lossy_packed_search); 1191 1191 default: 1192 - unreachable(); 1192 + BUG(); 1193 1193 } 1194 1194 } 1195 1195
+1 -1
fs/bcachefs/ec.h
··· 240 240 bch2_ec_do_stripe_creates(c); 241 241 break; 242 242 default: 243 - unreachable(); 243 + BUG(); 244 244 } 245 245 } 246 246