mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 04:47:05 +00:00
bcachefs: fix a divide
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
bc230209d3
commit
cf0517af15
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue