summaryrefslogtreecommitdiff
path: root/libbcachefs/super-io.h
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/super-io.h')
-rw-r--r--libbcachefs/super-io.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbcachefs/super-io.h b/libbcachefs/super-io.h
index 3811de7..2fa0719 100644
--- a/libbcachefs/super-io.h
+++ b/libbcachefs/super-io.h
@@ -243,7 +243,7 @@ static inline bool dev_in_target(struct bch_dev *ca, unsigned target)
case TARGET_DEV:
return ca->dev_idx == t.dev;
case TARGET_GROUP:
- return ca->mi.group && ca->mi.group == t.group;
+ return ca->mi.group && ca->mi.group - 1 == t.group;
default:
BUG();
}