bcachefs: Prioritize fragmentation in bucket allocator

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2018-08-21 15:19:33 -04:00 committed by Kent Overstreet
parent 216c9facfd
commit f84306a570

View File

@ -610,7 +610,7 @@ static unsigned long bucket_sort_key(struct bch_fs *c, struct bch_dev *ca,
return (data_wantness << 9) |
(needs_journal_commit << 8) |
bucket_gc_gen(ca, b);
(bucket_gc_gen(ca, b) / 16);
}
static inline int bucket_alloc_cmp(alloc_heap *h,