Commit 4fb66994 authored by Committed by David S. Miller
net: Optimize memory usage when splicing from sockets.
The recent fix of data corruption when splicing from sockets uses memory very inefficiently allocating a new page to copy each chunk of linear part of skb. This patch uses the same page until it's full (almost) by caching the page in sk_sndmsg_page field. With changes from David S. Miller <firstname.lastname@example.org> Signed-off-by: Jarek Poplawski <email@example.com> Signed-off-by: David S. Miller <firstname.lastname@example.org>
Showing with 36 additions and 11 deletions