mirror of
https://github.com/joel16/android_kernel_sony_msm8994.git
synced 2024-11-24 20:50:30 +00:00
[SG] Update block layer to use sg helpers
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
parent
82f66fbef5
commit
9b61764bcb
@ -1354,8 +1354,9 @@ new_segment:
|
||||
else
|
||||
sg = sg_next(sg);
|
||||
|
||||
memset(sg, 0, sizeof(*sg));
|
||||
sg->page = bvec->bv_page;
|
||||
sg_dma_len(sg) = 0;
|
||||
sg_dma_address(sg) = 0;
|
||||
sg_set_page(sg, bvec->bv_page);
|
||||
sg->length = nbytes;
|
||||
sg->offset = bvec->bv_offset;
|
||||
nsegs++;
|
||||
@ -1363,6 +1364,9 @@ new_segment:
|
||||
bvprv = bvec;
|
||||
} /* segments in rq */
|
||||
|
||||
if (sg)
|
||||
__sg_mark_end(sg);
|
||||
|
||||
return nsegs;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user