| commit | 4fb669948116d928ae44262ab7743732c574630d | [log] [tgz] |
|---|---|---|
| author | Jarek Poplawski <[email protected]> | Sun Feb 01 00:41:42 2009 -0800 |
| committer | David S. Miller <[email protected]> | Sun Feb 01 00:41:42 2009 -0800 |
| tree | 0be7481f6339fe4cb32faf4047f15f7cc962babc | |
| parent | 31f4574774e98aa275aeeee94f41ce042285ed8e [diff] |
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 <[email protected]> Signed-off-by: Jarek Poplawski <[email protected]> Signed-off-by: David S. Miller <[email protected]>