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

bcachefs: fix a divide

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent bc230209
...@@ -113,7 +113,7 @@ static void rebalance_work_accumulate(struct rebalance_work *w, ...@@ -113,7 +113,7 @@ static void rebalance_work_accumulate(struct rebalance_work *w,
work = U64_MAX; work = U64_MAX;
work = min(work, capacity); 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) { if (percent_full >= w->dev_most_full_percent) {
w->dev_most_full_idx = idx; w->dev_most_full_idx = idx;
......
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