diff options
author | Kent Overstreet <koverstreet@google.com> | 2012-09-10 16:49:33 -0400 |
---|---|---|
committer | Kent Overstreet <koverstreet@google.com> | 2013-03-23 17:15:38 -0400 |
commit | d3b45c2a056c5df443d1ddf27fbfada65f234af1 (patch) | |
tree | 96bb0ccdbb824d5a1e65083fecb69126110e3ccb /drivers/md | |
parent | ff8e0070d1a4d09cb462d3059956530fa67fd91d (diff) |
raid1: use bio_copy_data()
This doesn't really delete any code _yet_, but once immutable bvecs are
done we can just delete the rest of the code in that loop.
Signed-off-by: Kent Overstreet <koverstreet@google.com>
CC: Jens Axboe <axboe@kernel.dk>
CC: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/raid1.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index b36231866336..0a3988a25aab 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c | |||
@@ -1906,10 +1906,9 @@ static int process_checks(struct r1bio *r1_bio) | |||
1906 | else | 1906 | else |
1907 | bi->bv_len = size; | 1907 | bi->bv_len = size; |
1908 | size -= PAGE_SIZE; | 1908 | size -= PAGE_SIZE; |
1909 | memcpy(page_address(bi->bv_page), | ||
1910 | page_address(pbio->bi_io_vec[j].bv_page), | ||
1911 | PAGE_SIZE); | ||
1912 | } | 1909 | } |
1910 | |||
1911 | bio_copy_data(sbio, pbio); | ||
1913 | } | 1912 | } |
1914 | return 0; | 1913 | return 0; |
1915 | } | 1914 | } |