mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-19 05:24:11 +00:00
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>
This commit is contained in:
parent
d4610456cf
commit
e8cf978dff
1 changed files with 15 additions and 15 deletions
|
@ -1615,21 +1615,21 @@ static void conditional_stop_bcache_device(struct cache_set *c,
|
||||||
*/
|
*/
|
||||||
pr_warn("stop_when_cache_set_failed of %s is \"auto\" and cache is dirty, stop it to avoid potential data corruption.",
|
pr_warn("stop_when_cache_set_failed of %s is \"auto\" and cache is dirty, stop it to avoid potential data corruption.",
|
||||||
d->disk->disk_name);
|
d->disk->disk_name);
|
||||||
/*
|
/*
|
||||||
* There might be a small time gap that cache set is
|
* There might be a small time gap that cache set is
|
||||||
* released but bcache device is not. Inside this time
|
* released but bcache device is not. Inside this time
|
||||||
* gap, regular I/O requests will directly go into
|
* gap, regular I/O requests will directly go into
|
||||||
* backing device as no cache set attached to. This
|
* backing device as no cache set attached to. This
|
||||||
* behavior may also introduce potential inconsistence
|
* behavior may also introduce potential inconsistence
|
||||||
* data in writeback mode while cache is dirty.
|
* data in writeback mode while cache is dirty.
|
||||||
* Therefore before calling bcache_device_stop() due
|
* Therefore before calling bcache_device_stop() due
|
||||||
* to a broken cache device, dc->io_disable should be
|
* to a broken cache device, dc->io_disable should be
|
||||||
* explicitly set to true.
|
* explicitly set to true.
|
||||||
*/
|
*/
|
||||||
dc->io_disable = true;
|
dc->io_disable = true;
|
||||||
/* make others know io_disable is true earlier */
|
/* make others know io_disable is true earlier */
|
||||||
smp_mb();
|
smp_mb();
|
||||||
bcache_device_stop(d);
|
bcache_device_stop(d);
|
||||||
} else {
|
} else {
|
||||||
/*
|
/*
|
||||||
* dc->stop_when_cache_set_failed == BCH_CACHED_STOP_AUTO
|
* dc->stop_when_cache_set_failed == BCH_CACHED_STOP_AUTO
|
||||||
|
|
Loading…
Add table
Reference in a new issue