projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82f66fb
)
[SG] Update block layer to use sg helpers
author
Jens Axboe
<jens.axboe@oracle.com>
Mon, 22 Oct 2007 17:39:33 +0000
(19:39 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Mon, 22 Oct 2007 17:39:33 +0000
(19:39 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/ll_rw_blk.c
patch
|
blob
|
blame
|
history
diff --git
a/block/ll_rw_blk.c
b/block/ll_rw_blk.c
index 8025d646ab3085ff5627fc0f082465eba8329ce7..61c2e396f2faf402a7b0c95779beb5a12eb2946f 100644
(file)
--- a/
block/ll_rw_blk.c
+++ b/
block/ll_rw_blk.c
@@
-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;
}