aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid0.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2007-10-17 02:30:53 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-17 11:43:03 -0400
commit8299d7f7c067a30a67ad359d416128c4ff57dcd1 (patch)
tree0a824aab73367b5a72f63efb7b98504c02ff4450 /drivers/md/raid0.c
parent5ebf2c1260705a2ce51ad19af33059f08211579d (diff)
md: fix a bug in some never-used code.
http://bugzilla.kernel.org/show_bug.cgi?id=3277 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: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/md/raid0.c')
-rw-r--r--drivers/md/raid0.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/md/raid0.c b/drivers/md/raid0.c
index e79e1a538d44..c111105fc2dc 100644
--- a/drivers/md/raid0.c
+++ b/drivers/md/raid0.c
@@ -472,7 +472,7 @@ bad_map:
472 bio_io_error(bio); 472 bio_io_error(bio);
473 return 0; 473 return 0;
474} 474}
475 475
476static void raid0_status (struct seq_file *seq, mddev_t *mddev) 476static void raid0_status (struct seq_file *seq, mddev_t *mddev)
477{ 477{
478#undef MD_DEBUG 478#undef MD_DEBUG
@@ -480,18 +480,18 @@ static void raid0_status (struct seq_file *seq, mddev_t *mddev)
480 int j, k, h; 480 int j, k, h;
481 char b[BDEVNAME_SIZE]; 481 char b[BDEVNAME_SIZE];
482 raid0_conf_t *conf = mddev_to_conf(mddev); 482 raid0_conf_t *conf = mddev_to_conf(mddev);
483 483
484 h = 0; 484 h = 0;
485 for (j = 0; j < conf->nr_strip_zones; j++) { 485 for (j = 0; j < conf->nr_strip_zones; j++) {
486 seq_printf(seq, " z%d", j); 486 seq_printf(seq, " z%d", j);
487 if (conf->hash_table[h] == conf->strip_zone+j) 487 if (conf->hash_table[h] == conf->strip_zone+j)
488 seq_printf("(h%d)", h++); 488 seq_printf(seq, "(h%d)", h++);
489 seq_printf(seq, "=["); 489 seq_printf(seq, "=[");
490 for (k = 0; k < conf->strip_zone[j].nb_dev; k++) 490 for (k = 0; k < conf->strip_zone[j].nb_dev; k++)
491 seq_printf (seq, "%s/", bdevname( 491 seq_printf(seq, "%s/", bdevname(
492 conf->strip_zone[j].dev[k]->bdev,b)); 492 conf->strip_zone[j].dev[k]->bdev,b));
493 493
494 seq_printf (seq, "] zo=%d do=%d s=%d\n", 494 seq_printf(seq, "] zo=%d do=%d s=%d\n",
495 conf->strip_zone[j].zone_offset, 495 conf->strip_zone[j].zone_offset,
496 conf->strip_zone[j].dev_offset, 496 conf->strip_zone[j].dev_offset,
497 conf->strip_zone[j].size); 497 conf->strip_zone[j].size);