aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r--drivers/md/raid5.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index a361398875d0..10af3715b1fc 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -1618,7 +1618,7 @@ static void raid5_build_block(struct stripe_head *sh, int i, int previous)
1618static void error(mddev_t *mddev, mdk_rdev_t *rdev) 1618static void error(mddev_t *mddev, mdk_rdev_t *rdev)
1619{ 1619{
1620 char b[BDEVNAME_SIZE]; 1620 char b[BDEVNAME_SIZE];
1621 raid5_conf_t *conf = (raid5_conf_t *) mddev->private; 1621 raid5_conf_t *conf = mddev->private;
1622 pr_debug("raid5: error called\n"); 1622 pr_debug("raid5: error called\n");
1623 1623
1624 if (!test_bit(Faulty, &rdev->flags)) { 1624 if (!test_bit(Faulty, &rdev->flags)) {
@@ -4057,7 +4057,7 @@ static sector_t reshape_request(mddev_t *mddev, sector_t sector_nr, int *skipped
4057 * As the reads complete, handle_stripe will copy the data 4057 * As the reads complete, handle_stripe will copy the data
4058 * into the destination stripe and release that stripe. 4058 * into the destination stripe and release that stripe.
4059 */ 4059 */
4060 raid5_conf_t *conf = (raid5_conf_t *) mddev->private; 4060 raid5_conf_t *conf = mddev->private;
4061 struct stripe_head *sh; 4061 struct stripe_head *sh;
4062 sector_t first_sector, last_sector; 4062 sector_t first_sector, last_sector;
4063 int raid_disks = conf->previous_raid_disks; 4063 int raid_disks = conf->previous_raid_disks;
@@ -4266,7 +4266,7 @@ static sector_t reshape_request(mddev_t *mddev, sector_t sector_nr, int *skipped
4266/* FIXME go_faster isn't used */ 4266/* FIXME go_faster isn't used */
4267static inline sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *skipped, int go_faster) 4267static inline sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *skipped, int go_faster)
4268{ 4268{
4269 raid5_conf_t *conf = (raid5_conf_t *) mddev->private; 4269 raid5_conf_t *conf = mddev->private;
4270 struct stripe_head *sh; 4270 struct stripe_head *sh;
4271 sector_t max_sector = mddev->dev_sectors; 4271 sector_t max_sector = mddev->dev_sectors;
4272 int sync_blocks; 4272 int sync_blocks;
@@ -5132,7 +5132,7 @@ abort:
5132 5132
5133static int stop(mddev_t *mddev) 5133static int stop(mddev_t *mddev)
5134{ 5134{
5135 raid5_conf_t *conf = (raid5_conf_t *) mddev->private; 5135 raid5_conf_t *conf = mddev->private;
5136 5136
5137 md_unregister_thread(mddev->thread); 5137 md_unregister_thread(mddev->thread);
5138 mddev->thread = NULL; 5138 mddev->thread = NULL;
@@ -5181,7 +5181,7 @@ static void printall(struct seq_file *seq, raid5_conf_t *conf)
5181 5181
5182static void status(struct seq_file *seq, mddev_t *mddev) 5182static void status(struct seq_file *seq, mddev_t *mddev)
5183{ 5183{
5184 raid5_conf_t *conf = (raid5_conf_t *) mddev->private; 5184 raid5_conf_t *conf = mddev->private;
5185 int i; 5185 int i;
5186 5186
5187 seq_printf(seq, " level %d, %dk chunk, algorithm %d", mddev->level, 5187 seq_printf(seq, " level %d, %dk chunk, algorithm %d", mddev->level,