diff options
| author | Kent Overstreet <[email protected]> | 2012-09-10 20:49:33 +0000 |
|---|---|---|
| committer | Kent Overstreet <[email protected]> | 2013-03-23 21:15:38 +0000 |
| commit | d3b45c2a056c5df443d1ddf27fbfada65f234af1 (patch) | |
| tree | 96bb0ccdbb824d5a1e65083fecb69126110e3ccb /drivers/md/raid1.c | |
| parent | pktcdvd: Use bio_reset() in disabled code to kill bi_idx usage (diff) | |
| download | kernel-d3b45c2a056c5df443d1ddf27fbfada65f234af1.tar.gz kernel-d3b45c2a056c5df443d1ddf27fbfada65f234af1.zip | |
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 <[email protected]>
CC: Jens Axboe <[email protected]>
CC: NeilBrown <[email protected]>
Diffstat (limited to 'drivers/md/raid1.c')
| -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) else bi->bv_len = size; size -= PAGE_SIZE; - memcpy(page_address(bi->bv_page), - page_address(pbio->bi_io_vec[j].bv_page), - PAGE_SIZE); } + + bio_copy_data(sbio, pbio); } return 0; } |
