Commit f84306a5 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Prioritize fragmentation in bucket allocator

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 216c9fac
...@@ -610,7 +610,7 @@ static unsigned long bucket_sort_key(struct bch_fs *c, struct bch_dev *ca, ...@@ -610,7 +610,7 @@ static unsigned long bucket_sort_key(struct bch_fs *c, struct bch_dev *ca,
return (data_wantness << 9) | return (data_wantness << 9) |
(needs_journal_commit << 8) | (needs_journal_commit << 8) |
bucket_gc_gen(ca, b); (bucket_gc_gen(ca, b) / 16);
} }
static inline int bucket_alloc_cmp(alloc_heap *h, static inline int bucket_alloc_cmp(alloc_heap *h,
......
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