Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1e34a11d55c9437775367d72ad03f9af99e78bd0 Commit: 1e34a11d55c9437775367d72ad03f9af99e78bd0 Parent: 4c93566e2a61b48ef071a8d8a8fa9904c83a668e Author: David S. Miller <[EMAIL PROTECTED]> AuthorDate: Tue Jan 22 23:44:31 2008 -0800 Committer: David S. Miller <[EMAIL PROTECTED]> CommitDate: Wed Jan 23 03:11:40 2008 -0800
[IPV4]: Add missing skb->truesize increment in ip_append_page(). And as noted by Takahiro Yasui, we thus need to bump the sk->sk_wmem_alloc at this spot as well. Signed-off-by: David S. Miller <[EMAIL PROTECTED]> --- net/ipv4/ip_output.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index fd99fbd..480469b 100644 --- a/net/ipv4/ip_output.c +++ b/net/ipv4/ip_output.c @@ -1172,6 +1172,8 @@ ssize_t ip_append_page(struct sock *sk, struct page *page, skb->len += len; skb->data_len += len; + skb->truesize += len; + atomic_add(len, &sk->sk_wmem_alloc); offset += len; size -= len; } - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html