diff options
Diffstat (limited to 'drivers/md/bcache/sysfs.c')
-rw-r--r-- | drivers/md/bcache/sysfs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c index 34d09d94e95d..3b3939523708 100644 --- a/drivers/md/bcache/sysfs.c +++ b/drivers/md/bcache/sysfs.c @@ -7,6 +7,7 @@ */ #include "bcache.h" +#include "bch2.h" #include "sysfs.h" #include "btree.h" #include "io.h" @@ -407,6 +408,11 @@ STORE(__cached_dev) if (!v) return size; } + + v = bch2_cached_dev_attach(dc, set_uuid); + if (!v) + return size; + if (v == -ENOENT) pr_err("Can't attach %s: cache set not found", buf); return v; |