Tag: 3d1477309806459d39e13d8c3206ba35d183c34a

staging: lustre: lnet: Replace sg++ with sg = sg_next(sg)

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> With scatterlist chaining, simply incrementing the array does not work. sg_next macro was thus introduced to follow the chain links when necessary. So replace sg++ with sg_next. This change was made with the help of the following Coccinelle semantic patch: // @@ struct scatterlist *sg; @@ -sg++ +sg = sg_next(sg) …

Continue reading