net: splice: fix __splice_segment()
authorEric Dumazet <edumazet@google.com>
Fri, 11 Jan 2013 14:46:37 +0000 (14:46 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Feb 2013 18:48:37 +0000 (10:48 -0800)
commitc7c40b35837b6ea218a5aec82169c93bdc68235f
treee70ea5c4100f3bf89f974260c2b853e6a89180c0
parent4dd53a6c90a9045524888de2930b56b7833175b2
net: splice: fix __splice_segment()

[ Upstream commit bc9540c637c3d8712ccbf9dcf28621f380ed5e64 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/skbuff.c