aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/md/md.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 9fa98fc74b05..c6b8d9fd0b04 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -888,6 +888,10 @@ int sync_page_io(struct md_rdev *rdev, sector_t sector, int size,
888 rdev->meta_bdev : rdev->bdev; 888 rdev->meta_bdev : rdev->bdev;
889 if (metadata_op) 889 if (metadata_op)
890 bio->bi_sector = sector + rdev->sb_start; 890 bio->bi_sector = sector + rdev->sb_start;
891 else if (rdev->mddev->reshape_position != MaxSector &&
892 (rdev->mddev->reshape_backwards ==
893 (sector >= rdev->mddev->reshape_position)))
894 bio->bi_sector = sector + rdev->new_data_offset;
891 else 895 else
892 bio->bi_sector = sector + rdev->data_offset; 896 bio->bi_sector = sector + rdev->data_offset;
893 bio_add_page(bio, page, size, 0); 897 bio_add_page(bio, page, size, 0);