diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2017-12-21 18:00:30 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2017-12-21 18:06:45 -0500 |
commit | 1cf4d51dc4661f336f5318c176a3561ddf5bf04f (patch) | |
tree | 8b390ccd48361ba1408be6799d46e62c6382cc39 /libbcachefs/tier.c | |
parent | 8acc54456e11ee0ec80ed0c6abb6d68abae60592 (diff) |
Update bcachefs sources to 14ce2a2031 bcachefs: fixes for building in userspace
Diffstat (limited to 'libbcachefs/tier.c')
-rw-r--r-- | libbcachefs/tier.c | 3 |
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; |