projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc23020
)
bcachefs: fix a divide
author
Kent Overstreet
<kent.overstreet@gmail.com>
Thu, 6 Sep 2018 21:09:07 +0000
(17:09 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:09 +0000
(17:08 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/rebalance.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/rebalance.c
b/fs/bcachefs/rebalance.c
index 04824f667693015725a4629f372469c0194e4934..74702e753f60d7303f6ce97b01a4b737a7516477 100644
(file)
--- 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 = div
64
_u64(work * 100, capacity);
if (percent_full >= w->dev_most_full_percent) {
w->dev_most_full_idx = idx;