diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-09-06 23:09:07 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:08:09 +0200 |
commit | cf0517af15e1ef43a0ece3e3dcbfc94a19e89bac (patch) | |
tree | f964e1fe307b1239cd99ae83bc20fa982723b951 /fs/bcachefs/rebalance.c | |
parent | bcachefs: make fsck spew less (diff) | |
download | linux-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.c | 2 |
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; |