bcachefs: new_stripe_alloc_buckets() takes alloc_request
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 31 Mar 2025 19:46:45 +0000 (15:46 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 May 2025 00:13:33 +0000 (20:13 -0400)
commitac0952b0e50934a15fdd67a2ff376e6ab8152c39
tree2c5a5b8116e568d2d6ce0a7eacf2d06006e43a65
parent7100344301d80f09ea64c37c35ea10163d35d433
bcachefs: new_stripe_alloc_buckets() takes alloc_request

More stack usage improvements: instead of creating a new alloc_request
(currently on the stack), save/restore just the fields we need to reuse.

This is a bit tricky, because we're doing a normal alloc_foreground.c
allocation, which calls into ec.c to get a stripe, which then does more
normal allocations - some of the fields get reused, and used
differently.

So we have to save and restore them - but the stack usage improvements
will be well worth it.

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