summaryrefslogtreecommitdiff
path: root/libbcachefs/super-io.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-02-28 17:56:28 -0500
committerKent Overstreet <kent.overstreet@gmail.com>2018-02-28 17:57:55 -0500
commit1991277c8e723b018c90523949e8242692810911 (patch)
tree790b44b133642700cf692a00bc1713b86cc5564d /libbcachefs/super-io.h
parent3a6164cdebe08db9c08d171e5fce48ef7a1683b6 (diff)
Update bcachefs sources to e7f4678827 bcachefs: fix variable shadowing in macro call
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 3811de72..2fa0719f 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();
}