Commit 8299d7f7 authored by NeilBrown's avatar NeilBrown Committed by Linus Torvalds

md: fix a bug in some never-used code.

There is a seq_printf here that isn't being passed a 'seq'.  Howeve as the
code is inside #ifdef MD_DEBUG, nobody noticed.

Also remove some extra spaces.
Signed-off-by: default avatarNeil Brown <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 5ebf2c12
......@@ -472,7 +472,7 @@ static int raid0_make_request (struct request_queue *q, struct bio *bio)
return 0;
static void raid0_status (struct seq_file *seq, mddev_t *mddev)
#undef MD_DEBUG
......@@ -480,18 +480,18 @@ static void raid0_status (struct seq_file *seq, mddev_t *mddev)
int j, k, h;
raid0_conf_t *conf = mddev_to_conf(mddev);
h = 0;
for (j = 0; j < conf->nr_strip_zones; j++) {
seq_printf(seq, " z%d", j);
if (conf->hash_table[h] == conf->strip_zone+j)
seq_printf("(h%d)", h++);
seq_printf(seq, "(h%d)", h++);
seq_printf(seq, "=[");
for (k = 0; k < conf->strip_zone[j].nb_dev; k++)
seq_printf (seq, "%s/", bdevname(
seq_printf(seq, "%s/", bdevname(
seq_printf (seq, "] zo=%d do=%d s=%d\n",
seq_printf(seq, "] zo=%d do=%d s=%d\n",
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