]> git.dujemihanovic.xyz Git - linux.git/commit
bcachefs: bch_fs.rw_devs_change_count
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 6 Sep 2024 23:12:53 +0000 (19:12 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Sep 2024 15:39:49 +0000 (11:39 -0400)
commit83ccd9b31d5356f9943b8fd0f996ec9fefcb25f1
treee0641f1c855f3e210deeca58471b9d2fee325dda
parentad8d1f77fc425f42d1b297486eea36864ae82c41
bcachefs: bch_fs.rw_devs_change_count

Add a counter that's incremented whenever rw devices change; this will
be used for erasure coding so that it can keep ec_stripe_head in sync
and not deadlock on a new stripe when a device it wants goes away.

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