Commit 255e2646 authored by Heinz Mauelshagen's avatar Heinz Mauelshagen Committed by Mike Snitzer

dm: address indent/space issues

Signed-off-by: default avatarHeinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
parent 96422281
...@@ -2301,7 +2301,6 @@ static void dm_integrity_map_continue(struct dm_integrity_io *dio, bool from_map ...@@ -2301,7 +2301,6 @@ static void dm_integrity_map_continue(struct dm_integrity_io *dio, bool from_map
else else
skip_check: skip_check:
dec_in_flight(dio); dec_in_flight(dio);
} else { } else {
INIT_WORK(&dio->work, integrity_metadata); INIT_WORK(&dio->work, integrity_metadata);
queue_work(ic->metadata_wq, &dio->work); queue_work(ic->metadata_wq, &dio->work);
...@@ -4085,7 +4084,7 @@ static int dm_integrity_ctr(struct dm_target *ti, unsigned int argc, char **argv ...@@ -4085,7 +4084,7 @@ static int dm_integrity_ctr(struct dm_target *ti, unsigned int argc, char **argv
} else if (sscanf(opt_string, "block_size:%u%c", &val, &dummy) == 1) { } else if (sscanf(opt_string, "block_size:%u%c", &val, &dummy) == 1) {
if (val < 1 << SECTOR_SHIFT || if (val < 1 << SECTOR_SHIFT ||
val > MAX_SECTORS_PER_BLOCK << SECTOR_SHIFT || val > MAX_SECTORS_PER_BLOCK << SECTOR_SHIFT ||
(val & (val -1))) { (val & (val - 1))) {
r = -EINVAL; r = -EINVAL;
ti->error = "Invalid block_size argument"; ti->error = "Invalid block_size argument";
goto bad; goto bad;
...@@ -4405,7 +4404,7 @@ static int dm_integrity_ctr(struct dm_target *ti, unsigned int argc, char **argv ...@@ -4405,7 +4404,7 @@ static int dm_integrity_ctr(struct dm_target *ti, unsigned int argc, char **argv
if (ic->internal_hash) { if (ic->internal_hash) {
size_t recalc_tags_size; size_t recalc_tags_size;
ic->recalc_wq = alloc_workqueue("dm-integrity-recalc", WQ_MEM_RECLAIM, 1); ic->recalc_wq = alloc_workqueue("dm-integrity-recalc", WQ_MEM_RECLAIM, 1);
if (!ic->recalc_wq ) { if (!ic->recalc_wq) {
ti->error = "Cannot allocate workqueue"; ti->error = "Cannot allocate workqueue";
r = -ENOMEM; r = -ENOMEM;
goto bad; goto bad;
......
...@@ -363,8 +363,8 @@ static struct { ...@@ -363,8 +363,8 @@ static struct {
const int mode; const int mode;
const char *param; const char *param;
} _raid456_journal_mode[] = { } _raid456_journal_mode[] = {
{ R5C_JOURNAL_MODE_WRITE_THROUGH , "writethrough" }, { R5C_JOURNAL_MODE_WRITE_THROUGH, "writethrough" },
{ R5C_JOURNAL_MODE_WRITE_BACK , "writeback" } { R5C_JOURNAL_MODE_WRITE_BACK, "writeback" }
}; };
/* Return MD raid4/5/6 journal mode for dm @journal_mode one */ /* Return MD raid4/5/6 journal mode for dm @journal_mode one */
......
...@@ -73,7 +73,7 @@ static sector_t high(struct dm_table *t, unsigned int l, unsigned int n) ...@@ -73,7 +73,7 @@ static sector_t high(struct dm_table *t, unsigned int l, unsigned int n)
n = get_child(n, CHILDREN_PER_NODE - 1); n = get_child(n, CHILDREN_PER_NODE - 1);
if (n >= t->counts[l]) if (n >= t->counts[l])
return (sector_t) - 1; return (sector_t) -1;
return get_node(t, l, n)[KEYS_PER_NODE - 1]; return get_node(t, l, n)[KEYS_PER_NODE - 1];
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment