]> git.dujemihanovic.xyz Git - linux.git/commit
bcachefs: bch_stripe.disk_label
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 1 Sep 2024 18:54:42 +0000 (14:54 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Sep 2024 15:39:48 +0000 (11:39 -0400)
commitfa85c473977c0afb5104a630f019f593fe33a8b0
treefe3daca5893d3a2c44c7a1d8bfdd168499a3a2c8
parent1b11c4d3654877f4deb6f9bec12f6ec487d62030
bcachefs: bch_stripe.disk_label

When reshaping existing stripes, we should keep them on the same target
that they were allocated on; to do this, we need to add a field to the
btree stripe type.

This is a tad awkward, because we only have 8 bits left, and targets are
16 bits - but we only need to store a label, not a full target.

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