Commit 6b5f9b29 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Make open bucket reserves more conservative

Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 40ca39b5
......@@ -212,9 +212,9 @@ static inline unsigned open_buckets_reserved(enum alloc_reserve reserve)
case RESERVE_ALLOC:
return 0;
case RESERVE_BTREE:
return BTREE_NODE_OPEN_BUCKET_RESERVE;
return OPEN_BUCKETS_COUNT / 4;
default:
return BTREE_NODE_OPEN_BUCKET_RESERVE * 2;
return OPEN_BUCKETS_COUNT / 2;
}
}
......
Markdown is supported
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