summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorAndre Noll <maan@systemlinux.org>2008-10-13 02:55:12 +0200
committerNeilBrown <neilb@suse.de>2008-10-13 02:55:12 +0200
commit451708d2a439accbce136637ed4f156fc27371ab (patch)
treefb0723deef88e3bfa04a112f1d92b034c55abc75 /drivers/md
parentmd: linear.c: Remove pointless initialization of curr_offset. (diff)
downloadlinux-451708d2a439accbce136637ed4f156fc27371ab.tar.xz
linux-451708d2a439accbce136637ed4f156fc27371ab.zip
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.c23
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)
static void linear_status (struct seq_file *seq, mddev_t *mddev)
{
-#undef MD_DEBUG
-#ifdef MD_DEBUG
- int j;
- linear_conf_t *conf = mddev_to_conf(mddev);
- sector_t s = 0;
-
- seq_printf(seq, " ");
- for (j = 0; j < mddev->raid_disks; j++)
- {
- char b[BDEVNAME_SIZE];
- s += conf->smallest_size;
- seq_printf(seq, "[%s",
- bdevname(conf->hash_table[j][0].rdev->bdev,b));
-
- while (s > conf->hash_table[j][0].offset +
- conf->hash_table[j][0].size)
- seq_printf(seq, "/%s] ",
- bdevname(conf->hash_table[j][1].rdev->bdev,b));
- else
- seq_printf(seq, "] ");
- }
- seq_printf(seq, "\n");
-#endif
seq_printf(seq, " %dk rounding", mddev->chunk_size/1024);
}