projects
/
linux-2.6-microblaze.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
04824f6
..
74702e7
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;