diff options
author | Robbie Litchfield <blam.kiwi@gmail.com> | 2021-02-10 03:18:13 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:08:53 +0300 |
commit | 0ef837a0cc87d49d9f7d29bdef5a57f07ecc84d3 (patch) | |
tree | 7161856bca1da971b86022a113144f12cb89bfdc /drivers/cdrom | |
parent | 2bb748a69596e883cf9ea28321d43f8c6a225cef (diff) | |
download | linux-0ef837a0cc87d49d9f7d29bdef5a57f07ecc84d3.tar.xz |
bcachefs: Fix unnecessary read amplificaiton when allocating ec stripes
When allocating an erasure coding stripe, bcachefs will always reuse any
partial stripes before reserving a new stripe. This causes unnecessary
read amplification when preparing a stripe for writing. This patch changes
bcachefs to always reserve new stripes first, only relying on stripe reuse
when copygc needs more time to empty buckets from existing stripes.
Signed-off-by: Robbie Litchfield <blam.kiwi@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'drivers/cdrom')
0 files changed, 0 insertions, 0 deletions