summaryrefslogtreecommitdiff
path: root/libbcachefs/rebalance.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-10-12 14:55:27 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2018-10-12 15:10:26 -0400
commit55fbb25501330038e1714905b9ddeb25d875c11c (patch)
treececfd15e26bfd60d95eea8a373e42337239e7c8c /libbcachefs/rebalance.c
parent0268bec14bcf64b25b5dd75a470be8e85cbe676d (diff)
Update bcachefs sources to d7f6da1d60 bcachefs: fix missing include
Diffstat (limited to 'libbcachefs/rebalance.c')
-rw-r--r--libbcachefs/rebalance.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbcachefs/rebalance.c b/libbcachefs/rebalance.c
index 4154b1e9..3fbe7b10 100644
--- a/libbcachefs/rebalance.c
+++ b/libbcachefs/rebalance.c
@@ -1,6 +1,6 @@
#include "bcachefs.h"
-#include "alloc.h"
+#include "alloc_foreground.h"
#include "btree_iter.h"
#include "buckets.h"
#include "clock.h"
@@ -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;