bcachefs: fix a divide

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2018-09-06 17:09:07 -04:00 committed by Kent Overstreet
parent bc230209d3
commit cf0517af15

View file

@ -113,7 +113,7 @@ static void rebalance_work_accumulate(struct rebalance_work *w,
work = U64_MAX;
work = min(work, capacity);
percent_full = div_u64(work * 100, capacity);
percent_full = div64_u64(work * 100, capacity);
if (percent_full >= w->dev_most_full_percent) {
w->dev_most_full_idx = idx;