]> git.baikalelectronics.ru Git - kernel.git/commit
Make sock_sendpage() use kernel_sendpage()
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 13 Aug 2009 15:28:36 +0000 (08:28 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 13 Aug 2009 17:57:26 +0000 (10:57 -0700)
commit617ba872176d22d881ac952eb0e4c5ae3593fd9b
tree492a61009732cd0c468d4c0faa41321414ea43a7
parentb6c66634a6067fa9a175dd1b00b126b45d626602
Make sock_sendpage() use kernel_sendpage()

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>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
net/socket.c