@@ -153,7 +158,8 @@ static int create_strip_zones (mddev_t *mddev)
curr_zone_offset+=zone->size;
current_offset=smallest->size;
printk("raid0: current zone offset: %llu\n",(unsignedlonglong)current_offset);
printk("raid0: current zone offset: %llu\n",
(unsignedlonglong)current_offset);
}
printk("raid0: done.\n");
return0;
...
...
@@ -191,8 +197,6 @@ static int raid0_run (mddev_t *mddev)
s64size;
raid0_conf_t*conf;
MOD_INC_USE_COUNT;
conf=vmalloc(sizeof(raid0_conf_t));
if(!conf)
gotoout;
...
...
@@ -201,8 +205,10 @@ static int raid0_run (mddev_t *mddev)
if(create_strip_zones(mddev))
gotoout_free_conf;
printk("raid0 : md_size is %llu blocks.\n",(unsignedlonglong)md_size[mdidx(mddev)]);
printk("raid0 : conf->smallest->size is %llu blocks.\n",(unsignedlonglong)conf->smallest->size);
printk("raid0 : md_size is %llu blocks.\n",
(unsignedlonglong)md_size[mdidx(mddev)]);
printk("raid0 : conf->smallest->size is %llu blocks.\n",
(unsignedlonglong)conf->smallest->size);
{
#if __GNUC__ < 3
volatile
...
...
@@ -267,7 +273,6 @@ static int raid0_run (mddev_t *mddev)
vfree(conf);
mddev->private=NULL;
out:
MOD_DEC_USE_COUNT;
return1;
}
...
...
@@ -282,7 +287,6 @@ static int raid0_stop (mddev_t *mddev)
vfree(conf);
mddev->private=NULL;
MOD_DEC_USE_COUNT;
return0;
}
...
...
@@ -357,16 +361,21 @@ static int raid0_make_request (request_queue_t *q, struct bio *bio)
return1;
bad_map:
printk("raid0_make_request bug: can't convert block across chunks or bigger than %dk %llu %d\n",chunk_size,(unsignedlonglong)bio->bi_sector,bio->bi_size>>10);
printk("raid0_make_request bug: can't convert block across chunks"