From: Jarek Poplawski Date: Sun, 1 Feb 2009 08:41:42 +0000 (-0800) Subject: net: Optimize memory usage when splicing from sockets. X-Git-Tag: v2.6.30-rc1~662^2~865 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fb669948116d928ae44262ab7743732c574630d;p=pandora-kernel.git 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 Signed-off-by: Jarek Poplawski Signed-off-by: David S. Miller --- Reading git-diff-tree failed