summaryrefslogtreecommitdiff
path: root/libbcachefs/disk_groups.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-06-01 17:17:16 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2018-06-01 17:33:19 -0400
commitbb6f4111fbfe2550eb7b583586e732a473ba62f0 (patch)
tree72f01b9dbeaba544efb75016309c0da6839913ae /libbcachefs/disk_groups.c
parentd7bfc55d236363c7f9d2edee7437202497e462b5 (diff)
Update bcachefs sources to 9abf628c70 bcachefs: Fix a spurious error in fsck
Diffstat (limited to 'libbcachefs/disk_groups.c')
-rw-r--r--libbcachefs/disk_groups.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbcachefs/disk_groups.c b/libbcachefs/disk_groups.c
index cd200cb..87f3940 100644
--- a/libbcachefs/disk_groups.c
+++ b/libbcachefs/disk_groups.c
@@ -176,6 +176,8 @@ const struct bch_devs_mask *bch2_target_to_mask(struct bch_fs *c, unsigned targe
struct target t = target_decode(target);
switch (t.type) {
+ case TARGET_NULL:
+ return NULL;
case TARGET_DEV: {
struct bch_dev *ca = t.dev < c->sb.nr_devices
? rcu_dereference(c->devs[t.dev])