summaryrefslogtreecommitdiff
path: root/libbcachefs/extents.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/extents.c')
-rw-r--r--libbcachefs/extents.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libbcachefs/extents.c b/libbcachefs/extents.c
index 1da754a8..04946d99 100644
--- a/libbcachefs/extents.c
+++ b/libbcachefs/extents.c
@@ -28,8 +28,6 @@
#include "trace.h"
#include "util.h"
-#include <linux/random.h>
-
static const char * const bch2_extent_flags_strs[] = {
#define x(n, v) [BCH_EXTENT_FLAG_##n] = #n,
BCH_EXTENT_FLAGS()
@@ -119,7 +117,7 @@ static inline bool ptr_better(struct bch_fs *c,
/* Pick at random, biased in favor of the faster device: */
- return get_random_u64_below(p1_latency + p2_latency) > p1_latency;
+ return bch2_get_random_u64_below(p1_latency + p2_latency) > p1_latency;
}
/*