Make sock_sendpage() use kernel_sendpage()
commitd245fc6aa1bdaba06603d251e431f3d6d110a00a
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 13 Aug 2009 15:28:36 +0000 (13 08:28 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 16 Aug 2009 21:19:15 +0000 (16 14:19 -0700)
treea581eac51cf9c981471953237f1f96953984b544
parentc6d59cb0341e2c3aed3eb65cbf166a686c3443aa
Make sock_sendpage() use kernel_sendpage()

commit e694958388c50148389b0e9b9e9e8945cf0f1b98 upstream.

kernel_sendpage() does the proper default case handling for when the
socket doesn't have a native sendpage implementation.

Now, arguably this might be something that we could instead solve by
just specifying that all protocols should do it themselves at the
protocol level, but we really only care about the common protocols.
Does anybody really care about sendpage on something like Appletalk? Not
likely.

Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Julien TINNES <julien@cr0.org>
Acked-by: Tavis Ormandy <taviso@sdf.lonestar.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/socket.c