aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-02-08 23:52:57 -0500
committerJens Axboe <axboe@kernel.dk>2019-02-09 09:18:31 -0500
commite8cf978dffb2c603340d4615eec2e5358c9df06d (patch)
tree07bd675307d8c33b2caf2ba9cced4b6ffc66bafb /drivers/md
parentd4610456cfa412811b749f6215b9adae976ab4c3 (diff)
bcache: fix indentation issue, remove tabs on a hunk of code
There is a hunk of code that is indented one level too deep, fix this by removing the extra tabs. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Coly Li <colyli@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/bcache/super.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
index 4dee119c3664..a697a3a923cd 100644
--- a/drivers/md/bcache/super.c
+++ b/drivers/md/bcache/super.c
@@ -1615,21 +1615,21 @@ static void conditional_stop_bcache_device(struct cache_set *c,
1615 */ 1615 */
1616 pr_warn("stop_when_cache_set_failed of %s is \"auto\" and cache is dirty, stop it to avoid potential data corruption.", 1616 pr_warn("stop_when_cache_set_failed of %s is \"auto\" and cache is dirty, stop it to avoid potential data corruption.",
1617 d->disk->disk_name); 1617 d->disk->disk_name);
1618 /* 1618 /*
1619 * There might be a small time gap that cache set is 1619 * There might be a small time gap that cache set is
1620 * released but bcache device is not. Inside this time 1620 * released but bcache device is not. Inside this time
1621 * gap, regular I/O requests will directly go into 1621 * gap, regular I/O requests will directly go into
1622 * backing device as no cache set attached to. This 1622 * backing device as no cache set attached to. This
1623 * behavior may also introduce potential inconsistence 1623 * behavior may also introduce potential inconsistence
1624 * data in writeback mode while cache is dirty. 1624 * data in writeback mode while cache is dirty.
1625 * Therefore before calling bcache_device_stop() due 1625 * Therefore before calling bcache_device_stop() due
1626 * to a broken cache device, dc->io_disable should be 1626 * to a broken cache device, dc->io_disable should be
1627 * explicitly set to true. 1627 * explicitly set to true.
1628 */ 1628 */
1629 dc->io_disable = true; 1629 dc->io_disable = true;
1630 /* make others know io_disable is true earlier */ 1630 /* make others know io_disable is true earlier */
1631 smp_mb(); 1631 smp_mb();
1632 bcache_device_stop(d); 1632 bcache_device_stop(d);
1633 } else { 1633 } else {
1634 /* 1634 /*
1635 * dc->stop_when_cache_set_failed == BCH_CACHED_STOP_AUTO 1635 * dc->stop_when_cache_set_failed == BCH_CACHED_STOP_AUTO