mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 04:31:50 +00:00
bcachefs: Make open bucket reserves more conservative
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
40ca39b564
commit
6b5f9b29e6
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user