summaryrefslogtreecommitdiff
path: root/libbcache/tier.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbcache/tier.c')
-rw-r--r--libbcache/tier.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbcache/tier.c b/libbcache/tier.c
index 39b04f7..4686459 100644
--- a/libbcache/tier.c
+++ b/libbcache/tier.c
@@ -8,6 +8,7 @@
#include "io.h"
#include "keylist.h"
#include "move.h"
+#include "super-io.h"
#include "tier.h"
#include <linux/freezer.h>
@@ -40,7 +41,7 @@ static bool tiering_pred(struct cache_set *c,
mi = cache_member_info_get(c);
extent_for_each_ptr(e, ptr)
- if (ptr->dev < mi->nr_in_set &&
+ if (ptr->dev < mi->nr_devices &&
mi->m[ptr->dev].tier >= s->tier_idx)
replicas++;
cache_member_info_put();