diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-11-04 21:55:35 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:11 -0400 |
commit | b092dadd55fb242a480f81c421303a9e53302156 (patch) | |
tree | 8cef50ce499ac371476302a29d1976056efe560e /fs/bcachefs/alloc_types.h | |
parent | 72644db153e6d3fc146d2c805dcba5b5d676cd99 (diff) |
bcachefs: Scale down number of writepoints when low on space
this means we don't have to reserve space for them when calculating
filesystem capacity
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/alloc_types.h')
-rw-r--r-- | fs/bcachefs/alloc_types.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/bcachefs/alloc_types.h b/fs/bcachefs/alloc_types.h index e0306d68ae9f..2a9c6f0344ed 100644 --- a/fs/bcachefs/alloc_types.h +++ b/fs/bcachefs/alloc_types.h @@ -46,7 +46,9 @@ typedef FIFO(long) alloc_fifo; /* Enough for 16 cache devices, 2 tiers and some left over for pipelining */ #define OPEN_BUCKETS_COUNT 256 -#define WRITE_POINT_COUNT 32 + +#define WRITE_POINT_HASH_NR 32 +#define WRITE_POINT_MAX 32 struct open_bucket { spinlock_t lock; |