Skip to content

Commit

Permalink
raid1: use bio_copy_data()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kent Overstreet committed Mar 23, 2013
1 parent ff8e007 commit d3b45c2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/md/raid1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d3b45c2

Please sign in to comment.