net: use skb_fill_page_desc() in zerocopy_sg_from_iovec()
authorJason Wang <jasowang@redhat.com>
Tue, 6 Aug 2013 09:45:05 +0000 (17:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Aug 2013 23:52:35 +0000 (16:52 -0700)
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/datagram.c

index f987faef21ce314c9add520b6b88cd19cb05d3d5..bec08672644a7cf1ad3ad39187bb3789cc05da3b 100644 (file)
@@ -652,8 +652,7 @@ int zerocopy_sg_from_iovec(struct sk_buff *skb, const struct iovec *from,
                while (len) {
                        int off = base & ~PAGE_MASK;
                        int size = min_t(int, len, PAGE_SIZE - off);
-                       __skb_fill_page_desc(skb, i, page[i], off, size);
-                       skb_shinfo(skb)->nr_frags++;
+                       skb_fill_page_desc(skb, i, page[i], off, size);
                        /* increase sk_wmem_alloc */
                        base += size;
                        len -= size;