On Thu, Feb 16, 2017 at 9:34 PM, Johannes Thumshirn wrote:
> On 02/16/2017 02:32 PM, Ming Lei wrote:
>> On Thu, Feb 16, 2017 at 8:35 PM, Johannes Thumshirn
>> wrote:
>>> On 02/16/2017 12:45 PM, Ming Lei wrote:
@@ -998,7 +998,8 @@ static void alloc_behind_pages(struct bio *bio, struct
On 02/16/2017 02:32 PM, Ming Lei wrote:
> On Thu, Feb 16, 2017 at 8:35 PM, Johannes Thumshirn
> wrote:
>> On 02/16/2017 12:45 PM, Ming Lei wrote:
>>> @@ -998,7 +998,8 @@ static void alloc_behind_pages(struct bio *bio, struct
>>> r1bio *r1_bio)
>>> {
>>> int i;
>>> struct bio_vec *bv
On Thu, Feb 16, 2017 at 8:35 PM, Johannes Thumshirn wrote:
> On 02/16/2017 12:45 PM, Ming Lei wrote:
>> @@ -998,7 +998,8 @@ static void alloc_behind_pages(struct bio *bio, struct
>> r1bio *r1_bio)
>> {
>> int i;
>> struct bio_vec *bvec;
>> - struct bio_vec *bvecs = kzalloc(bio->b
On 02/16/2017 12:45 PM, Ming Lei wrote:
> @@ -998,7 +998,8 @@ static void alloc_behind_pages(struct bio *bio, struct
> r1bio *r1_bio)
> {
> int i;
> struct bio_vec *bvec;
> - struct bio_vec *bvecs = kzalloc(bio->bi_vcnt * sizeof(struct bio_vec),
> + unsigned vcnt = bio_segment
Use this helper, instead of direct access to .bi_vcnt.
Signed-off-by: Ming Lei
---
drivers/md/raid1.c | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index 54ec32be3277..02cfece74981 100644
--- a/drivers/md/raid1.c
+++ b/drivers/
5 matches
Mail list logo