The hunks of "btrfs: stripe_alloc: count open stripe run remainders
against data reservations" (earlier in this series) that need code from
"btrfs: stripe_alloc: settle a logged extent's stripes at log commit",
which comes after it in this series: they are applied here, once "btrfs:
stripe_alloc: settle a logged extent's stripes at log commit" is in,
instead of with the rest of "btrfs: stripe_alloc: count open stripe run
remainders against data reservations".
Assisted-by: Claude:claude-fable-5
Assisted-by: Claude:claude-opus-5-5
}
spin_unlock_irqrestore(&bg->stripe_run_lock, flags);
- if (tail_len)
+ if (tail_len) {
btrfs_add_free_space(bg, tail_start, tail_len);
+ stripe_open_remainder_sync(bg);
+ }
if (flush_len) {
btrfs_flush_parked_rbios(fs_info, flush_start, flush_len, false);
wait_var_event(&bg->open_stripe_runs,