Commit 0ef837a0 authored by Robbie Litchfield's avatar Robbie Litchfield Committed by Kent Overstreet
Browse files

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: default avatarRobbie Litchfield <blam.kiwi@gmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 2bb748a6
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment