linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] lib/sg_split: remove setting of offset to zero
@ 2020-01-23 20:55 vcxzasdfvcxz
  0 siblings, 0 replies; only message in thread
From: vcxzasdfvcxz @ 2020-01-23 20:55 UTC (permalink / raw)
  To: linux-kernel

By setting offset to zero we are losing where in the page the memory is.

--- a/lib/sg_split.c
+++ b/lib/sg_split.c
@@ -88,8 +88,6 @@ static void sg_split_phys(struct sg_splitter *splitters, const int nb_splits)
                        if (!j) {
                                out_sg->offset += split->skip_sg0;
                                out_sg->length -= split->skip_sg0;
-                       } else {
-                               out_sg->offset = 0;
                        }
                        sg_dma_address(out_sg) = 0;
                        sg_dma_len(out_sg) = 0;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-23 20:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-23 20:55 [PATCH] lib/sg_split: remove setting of offset to zero vcxzasdfvcxz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).