diff options
Diffstat (limited to 'libbcachefs/super.c')
-rw-r--r-- | libbcachefs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbcachefs/super.c b/libbcachefs/super.c index 696ea138..a659f806 100644 --- a/libbcachefs/super.c +++ b/libbcachefs/super.c @@ -1834,7 +1834,7 @@ struct bch_dev *bch2_dev_lookup(struct bch_fs *c, const char *name) for_each_member_device_rcu(ca, c, i, NULL) if (!strcmp(name, ca->name)) goto found; - ca = ERR_PTR(-ENOENT); + ca = ERR_PTR(-BCH_ERR_ENOENT_dev_not_found); found: rcu_read_unlock(); |