From cf0517af15e1ef43a0ece3e3dcbfc94a19e89bac Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Thu, 6 Sep 2018 17:09:07 -0400 Subject: [PATCH] bcachefs: fix a divide Signed-off-by: Kent Overstreet --- fs/bcachefs/rebalance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/bcachefs/rebalance.c b/fs/bcachefs/rebalance.c index 04824f6676930..74702e753f60d 100644 --- a/fs/bcachefs/rebalance.c +++ b/fs/bcachefs/rebalance.c @@ -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; -- 2.30.2