bcachefs: Fix error handling in promote path
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 29 May 2023 06:26:04 +0000 (02:26 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:03 +0000 (17:10 -0400)
commit4c4a8f20d1767b2ed927d25ccc363de72d48d28f
tree0aee62ce78392edb21e1870bbcaedaf0c9573cf2
parent5718fda0b5ef777ef56edbe53ef6a830b845c0fa
bcachefs: Fix error handling in promote path

The promote path had a BUG_ON() for unknown error type, which we're now
seeing: change it to a WARN_ON() - because we're curious what this is -
and otherwise handle it in the normal error path.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/io.c