summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/rebalance.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-09-06 23:09:07 +0200
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 23:08:09 +0200
commitcf0517af15e1ef43a0ece3e3dcbfc94a19e89bac (patch)
treef964e1fe307b1239cd99ae83bc20fa982723b951 /fs/bcachefs/rebalance.c
parentbcachefs: make fsck spew less (diff)
downloadlinux-cf0517af15e1ef43a0ece3e3dcbfc94a19e89bac.tar.xz
linux-cf0517af15e1ef43a0ece3e3dcbfc94a19e89bac.zip
bcachefs: fix a divide
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/rebalance.c')
-rw-r--r--fs/bcachefs/rebalance.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/rebalance.c b/fs/bcachefs/rebalance.c
index 04824f667693..74702e753f60 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;