]> git.dujemihanovic.xyz Git - linux.git/commit
bcachefs: bch2_ec_stripe_head_get() now checks for change in rw devices
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 6 Sep 2024 23:14:36 +0000 (19:14 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Sep 2024 15:39:49 +0000 (11:39 -0400)
commit035d72f72c9172a29bba4e09620d286ed8496356
tree123b8f98fcf7bb4bb6cae3bf4af864b3d685bcb2
parent83ccd9b31d5356f9943b8fd0f996ec9fefcb25f1
bcachefs: bch2_ec_stripe_head_get() now checks for change in rw devices

This factors out ec_strie_head_devs_update(), which initializes the
bitmap of devices we're allocating from, and runs it every time
c->rw_devs_change_count changes.

We also cancel pending, not allocated stripes, since they may refer to
devices that are no longer available.

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