diff options
author | Andre Noll <maan@systemlinux.org> | 2008-10-12 20:55:12 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-10-12 20:55:12 -0400 |
commit | 451708d2a439accbce136637ed4f156fc27371ab (patch) | |
tree | fb0723deef88e3bfa04a112f1d92b034c55abc75 /drivers/md | |
parent | 481d86c7ebe2ce59dfb6ccb720efa9d3fc1cf7cd (diff) |
md: linear.c: Remove broken debug code.
conf->smallest_size is undefined since day one of the git repo..
Signed-off-by: Andre Noll <maan@systemlinux.org>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/linear.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/md/linear.c b/drivers/md/linear.c index 632898f3bc98..01ed03a0c7ee 100644 --- a/drivers/md/linear.c +++ b/drivers/md/linear.c | |||
@@ -371,29 +371,6 @@ static int linear_make_request (struct request_queue *q, struct bio *bio) | |||
371 | static void linear_status (struct seq_file *seq, mddev_t *mddev) | 371 | static void linear_status (struct seq_file *seq, mddev_t *mddev) |
372 | { | 372 | { |
373 | 373 | ||
374 | #undef MD_DEBUG | ||
375 | #ifdef MD_DEBUG | ||
376 | int j; | ||
377 | linear_conf_t *conf = mddev_to_conf(mddev); | ||
378 | sector_t s = 0; | ||
379 | |||
380 | seq_printf(seq, " "); | ||
381 | for (j = 0; j < mddev->raid_disks; j++) | ||
382 | { | ||
383 | char b[BDEVNAME_SIZE]; | ||
384 | s += conf->smallest_size; | ||
385 | seq_printf(seq, "[%s", | ||
386 | bdevname(conf->hash_table[j][0].rdev->bdev,b)); | ||
387 | |||
388 | while (s > conf->hash_table[j][0].offset + | ||
389 | conf->hash_table[j][0].size) | ||
390 | seq_printf(seq, "/%s] ", | ||
391 | bdevname(conf->hash_table[j][1].rdev->bdev,b)); | ||
392 | else | ||
393 | seq_printf(seq, "] "); | ||
394 | } | ||
395 | seq_printf(seq, "\n"); | ||
396 | #endif | ||
397 | seq_printf(seq, " %dk rounding", mddev->chunk_size/1024); | 374 | seq_printf(seq, " %dk rounding", mddev->chunk_size/1024); |
398 | } | 375 | } |
399 | 376 | ||