summaryrefslogtreecommitdiff
path: root/libbcachefs/tier.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/tier.c')
-rw-r--r--libbcachefs/tier.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libbcachefs/tier.c b/libbcachefs/tier.c
index 2e29f741..f5007864 100644
--- a/libbcachefs/tier.c
+++ b/libbcachefs/tier.c
@@ -6,7 +6,6 @@
#include "clock.h"
#include "extents.h"
#include "io.h"
-#include "keylist.h"
#include "move.h"
#include "super-io.h"
#include "tier.h"
@@ -28,7 +27,7 @@ static bool tiering_pred(void *arg, struct bkey_s_c_extent e)
return false;
extent_for_each_ptr(e, ptr)
- if (c->devs[ptr->dev]->mi.tier >= tier->idx)
+ if (bch_dev_bkey_exists(c, ptr->dev)->mi.tier >= tier->idx)
replicas++;
return replicas < c->opts.data_replicas;