mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[SG] Get rid of __sg_mark_end()
sg_mark_end() overwrites the page_link information, but all users want __sg_mark_end() behaviour where we just set the end bit. That is the most natural way to use the sg list, since you'll fill it in and then mark the end point. So change sg_mark_end() to only set the termination bit. Add a sg_magic debug check as well, and clear a chain pointer if it is set. Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
87ae9afdca
commit
c46f2334c8
8 changed files with 21 additions and 19 deletions
|
|
@ -702,7 +702,7 @@ static void rxkad_sg_set_buf2(struct scatterlist sg[2],
|
|||
nsg++;
|
||||
}
|
||||
|
||||
__sg_mark_end(&sg[nsg - 1]);
|
||||
sg_mark_end(&sg[nsg - 1]);
|
||||
|
||||
ASSERTCMP(sg[0].length + sg[1].length, ==, buflen);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue