diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-03-29 22:47:30 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:58 -0400 |
commit | 25d8f40560e75aea107b0e773f8712931173ded6 (patch) | |
tree | feabd5ad0f9cd10d8105b8f291c4b8f9382eb135 /Documentation/driver-api/wmi.rst | |
parent | 32de2ea0d5b7e2bc2a4eeac47e38aceb0ff25cc9 (diff) | |
download | lwn-25d8f40560e75aea107b0e773f8712931173ded6.tar.gz lwn-25d8f40560e75aea107b0e773f8712931173ded6.zip |
bcachefs: Data update path no longer leaves cached replicas
It turns out that it's currently impossible to invalidate buckets
containing only cached data if they're part of a stripe. The normal
bucket invalidate path can't do it because we have to be able to
incerement the bucket's gen, which isn't correct becasue it's still a
member of the stripe - and the bucket invalidate path makes the bucket
availabel for reuse right away, which also isn't correct for buckets in
stripes.
What would work is invalidating cached data by following backpointers,
except that cached replicas don't currently get backpointers - because
they would be awkward for the existing bucket invalidate path to delete
and they haven't been needed elsewhere.
So for the time being, to prevent running out of space in stripes,
switch the data update path to not leave cached replicas; we may revisit
this in the future.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'Documentation/driver-api/wmi.rst')
0 files changed, 0 insertions, 0 deletions