OSDN Git Service

net: splice: fix __splice_segment()
authorEric Dumazet <edumazet@google.com>
Fri, 11 Jan 2013 14:46:37 +0000 (14:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jan 2013 04:19:36 +0000 (23:19 -0500)
commitbc9540c637c3d8712ccbf9dcf28621f380ed5e64
tree6d5d870889eace5924999667c47b0464bb1a3b0c
parent82bda6195615891181115f579a480aa5001ce7e9
net: splice: fix __splice_segment()

commit 9ca1b22d6d2 (net: splice: avoid high order page splitting)
forgot that skb->head could need a copy into several page frags.

This could be the case for loopback traffic mostly.

Also remove now useless skb argument from linear_to_page()
and __splice_segment() prototypes.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Willy Tarreau <w@1wt.eu>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c