bcachefs: fix can_write_extent()
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 14 May 2025 14:44:21 +0000 (10:44 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 May 2025 00:14:58 +0000 (20:14 -0400)
commit648c1142c9f1ad914c9fd79cedbd6b92ac788cd6
tree37a4a4d7006c0d55f95d8e8211d137c2322d2c7f
parentc7378d0e5e23db8c7da8173d7961620078071796
bcachefs: fix can_write_extent()

Failing to check the return value of bch2_dev_rcu(): we could
(technically) race with device removal.

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