diff options
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r-- | drivers/md/raid1.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index 1ab30f64848f..23a7516abbfd 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c | |||
@@ -262,7 +262,7 @@ static inline void update_head_pos(int disk, r1bio_t *r1_bio) | |||
262 | static void raid1_end_read_request(struct bio *bio, int error) | 262 | static void raid1_end_read_request(struct bio *bio, int error) |
263 | { | 263 | { |
264 | int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); | 264 | int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); |
265 | r1bio_t * r1_bio = (r1bio_t *)(bio->bi_private); | 265 | r1bio_t *r1_bio = bio->bi_private; |
266 | int mirror; | 266 | int mirror; |
267 | conf_t *conf = r1_bio->mddev->private; | 267 | conf_t *conf = r1_bio->mddev->private; |
268 | 268 | ||
@@ -307,7 +307,7 @@ static void raid1_end_read_request(struct bio *bio, int error) | |||
307 | static void raid1_end_write_request(struct bio *bio, int error) | 307 | static void raid1_end_write_request(struct bio *bio, int error) |
308 | { | 308 | { |
309 | int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); | 309 | int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); |
310 | r1bio_t * r1_bio = (r1bio_t *)(bio->bi_private); | 310 | r1bio_t *r1_bio = bio->bi_private; |
311 | int mirror, behind = test_bit(R1BIO_BehindIO, &r1_bio->state); | 311 | int mirror, behind = test_bit(R1BIO_BehindIO, &r1_bio->state); |
312 | conf_t *conf = r1_bio->mddev->private; | 312 | conf_t *conf = r1_bio->mddev->private; |
313 | struct bio *to_put = NULL; | 313 | struct bio *to_put = NULL; |
@@ -1223,7 +1223,7 @@ abort: | |||
1223 | 1223 | ||
1224 | static void end_sync_read(struct bio *bio, int error) | 1224 | static void end_sync_read(struct bio *bio, int error) |
1225 | { | 1225 | { |
1226 | r1bio_t * r1_bio = (r1bio_t *)(bio->bi_private); | 1226 | r1bio_t *r1_bio = bio->bi_private; |
1227 | int i; | 1227 | int i; |
1228 | 1228 | ||
1229 | for (i=r1_bio->mddev->raid_disks; i--; ) | 1229 | for (i=r1_bio->mddev->raid_disks; i--; ) |
@@ -1246,7 +1246,7 @@ static void end_sync_read(struct bio *bio, int error) | |||
1246 | static void end_sync_write(struct bio *bio, int error) | 1246 | static void end_sync_write(struct bio *bio, int error) |
1247 | { | 1247 | { |
1248 | int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); | 1248 | int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); |
1249 | r1bio_t * r1_bio = (r1bio_t *)(bio->bi_private); | 1249 | r1bio_t *r1_bio = bio->bi_private; |
1250 | mddev_t *mddev = r1_bio->mddev; | 1250 | mddev_t *mddev = r1_bio->mddev; |
1251 | conf_t *conf = mddev->private; | 1251 | conf_t *conf = mddev->private; |
1252 | int i; | 1252 | int i; |