diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-09-06 17:09:07 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-09-06 17:09:56 -0400 |
commit | a18f3fe2a6491554deb3d3595422d3951ccbdc80 (patch) | |
tree | a9880e02b85e838c2b6dee29ae4fa182295b07b1 | |
parent | 9c08efd02b827e6ee2a6e5a751045c6c6bd484d4 (diff) |
bcachefs: fix a divide
-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 4154b1e97acd..0070d32f5a97 100644 --- a/fs/bcachefs/rebalance.c +++ b/fs/bcachefs/rebalance.c @@ -112,7 +112,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; |