diff options
-rw-r--r-- | drivers/md/raid1.c | 2 | ||||
-rw-r--r-- | drivers/md/raid10.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index 8c420f178603..d35e4c991e38 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c | |||
@@ -1738,7 +1738,7 @@ static int process_checks(struct r1bio *r1_bio) | |||
1738 | s = sbio->bi_io_vec[j].bv_page; | 1738 | s = sbio->bi_io_vec[j].bv_page; |
1739 | if (memcmp(page_address(p), | 1739 | if (memcmp(page_address(p), |
1740 | page_address(s), | 1740 | page_address(s), |
1741 | PAGE_SIZE)) | 1741 | sbio->bi_io_vec[j].bv_len)) |
1742 | break; | 1742 | break; |
1743 | } | 1743 | } |
1744 | } else | 1744 | } else |
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index 3540316886f2..fff782189e48 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c | |||
@@ -1821,7 +1821,7 @@ static void sync_request_write(struct mddev *mddev, struct r10bio *r10_bio) | |||
1821 | for (j = 0; j < vcnt; j++) | 1821 | for (j = 0; j < vcnt; j++) |
1822 | if (memcmp(page_address(fbio->bi_io_vec[j].bv_page), | 1822 | if (memcmp(page_address(fbio->bi_io_vec[j].bv_page), |
1823 | page_address(tbio->bi_io_vec[j].bv_page), | 1823 | page_address(tbio->bi_io_vec[j].bv_page), |
1824 | PAGE_SIZE)) | 1824 | fbio->bi_io_vec[j].bv_len)) |
1825 | break; | 1825 | break; |
1826 | if (j == vcnt) | 1826 | if (j == vcnt) |
1827 | continue; | 1827 | continue; |