projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40ca39b
)
bcachefs: Make open bucket reserves more conservative
author
Kent Overstreet
<kent.overstreet@gmail.com>
Tue, 9 Jun 2020 19:46:22 +0000
(15:46 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:41 +0000
(17:08 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/alloc_foreground.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/alloc_foreground.c
b/fs/bcachefs/alloc_foreground.c
index 333aa140af54db9f87a4ff7382549c6a6f067d87..4c1c264ce206292bd3c3feec3ef67ccfd90bdf92 100644
(file)
--- a/
fs/bcachefs/alloc_foreground.c
+++ b/
fs/bcachefs/alloc_foreground.c
@@
-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;
}
}