bcachefs: Fix bch2_dev_lookup() refcounting
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 4 May 2024 16:51:49 +0000 (12:51 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 6 May 2024 14:58:17 +0000 (10:58 -0400)
commit3a2d0259274202432e5119463dd4cf5f9fabed98
tree52bf7139b99cecf0ce982114fd0f733f37c14a01
parent1267df40acb2da62b1641abae26132411d093fb3
bcachefs: Fix bch2_dev_lookup() refcounting

bch2_dev_lookup() is supposed to take a ref on the device it returns, but
for_each_member_device() takes refs as it iterates,
for_each_member_device_rcu() does not.

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