projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff8e007
)
raid1: use bio_copy_data()
author
Kent Overstreet
<koverstreet@google.com>
Mon, 10 Sep 2012 20:49:33 +0000
(13:49 -0700)
committer
Kent Overstreet
<koverstreet@google.com>
Sat, 23 Mar 2013 21:15:38 +0000
(14:15 -0700)
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>
drivers/md/raid1.c
patch
|
blob
|
history
diff --git
a/drivers/md/raid1.c
b/drivers/md/raid1.c
index b36231866336a4895a69148b9241db5c0f9590f6..0a3988a25aabbfafff455f874e5850861e6da9eb 100644
(file)
--- 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;
}