diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-09-04 15:58:14 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-09-04 16:05:11 -0400 |
commit | e8b7f8be92cc504f4300968d4e603d7c50e5e198 (patch) | |
tree | 62e94c7ae0cfca99875ca652bd5796de0c527bde /scripts/lib | |
parent | 7b77d211b20be5444dd10b8fdb202fac0b770734 (diff) |
bcachefs: Avoid stranding on btree_reserve_cache
We have to carefull with the btree_reserve_cache so that it can't be
used to bypass watermarks - but there's a much easier and better way to
do that.
Instead of trying to duplicate the allocator code to check "can we do
this allocation or does it have to wait", call that first, and then
after it succeeds check if we have a node in the btree reserve cache we
can use instead - we don't have to consume from
alloc_sectors_start_transn().
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'scripts/lib')
0 files changed, 0 insertions, 0 deletions