]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: bch_alloc->stripe_sectors
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 23 Nov 2023 22:21:23 +0000 (17:21 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 14 Jul 2024 23:00:12 +0000 (19:00 -0400)
commit55f7962da3bb2d34525c1973189413a113667a24
tree5a318e63f6e3e71690f21ef59a99858087772e98
parentc13d526d9dc1aa0c4962b017c881c28c1e23ca26
bcachefs: bch_alloc->stripe_sectors

Add a separate counter to bch_alloc_v4 for amount of striped data; this
lets us separately track striped and unstriped data in a bucket, which
lets us see when erasure coding has failed to update extents with stripe
pointers, and also find buckets to continue updating if we crash mid way
through creating a new stripe.

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