bcachefs: Don't try to delete stripes when RO
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 10 Jul 2019 20:04:58 +0000 (16:04 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:24 +0000 (17:08 -0400)
commit97fd13ad769c24260ce0e05f05a51df132b980bd
tree3b356c352e70f68130aa9a8a959d1cdef7e8f289
parentf57a6a5d41d66c527f8683b5cc6a069fe59e1fdf
bcachefs: Don't try to delete stripes when RO

We weren't checking for errors when trying to delet stripes, which meant
ec_stripe_delete_work() would spin trying to delete the same stripe over
and over.

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