summaryrefslogtreecommitdiff
path: root/drivers/md/bcache/sysfs.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-06-22 17:35:56 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2020-06-28 18:12:46 -0400
commit8aa6e6e10ce712bcb10be9a206ec13d00ad0e7e6 (patch)
tree347feb718da57de42ae6f2e5367df3e2e5ad6466 /drivers/md/bcache/sysfs.c
parent7b42d65c0607af212b9ef3aa834ea449e3f846b1 (diff)
Initial bcache/bcachefs integrationbcache2
Diffstat (limited to 'drivers/md/bcache/sysfs.c')
-rw-r--r--drivers/md/bcache/sysfs.c6
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;