summaryrefslogtreecommitdiff
path: root/drivers/md/bcache/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/bcache/super.c')
-rw-r--r--drivers/md/bcache/super.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
index 0ac28a458f37..b4f6e6b0c7a7 100644
--- a/drivers/md/bcache/super.c
+++ b/drivers/md/bcache/super.c
@@ -1356,9 +1356,11 @@ static const char *run_cache_set(struct cache_set *c)
bch_verbose(c, "fs gc done");
- bch_verbose(c, "starting fsck:");
- bch_fsck(c);
- bch_verbose(c, "fsck done");
+ if (!c->opts.nofsck) {
+ bch_verbose(c, "starting fsck:");
+ bch_fsck(c);
+ bch_verbose(c, "fsck done");
+ }
} else {
struct bkey_i_inode inode;
struct closure cl;