tcp: use page_ref_inc() in tcp_sendmsg()
authorEric Dumazet <edumazet@google.com>
Fri, 17 Feb 2017 17:11:42 +0000 (09:11 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Feb 2017 20:31:06 +0000 (15:31 -0500)
commit4e33e34625103593a71d2bae471ce49cef62ef06
tree06d29484bfebbee057e0a28baf9ec6b9bebab3ff
parenta4ecb15a2432880353d0de4a35204ab8b65b8751
tcp: use page_ref_inc() in tcp_sendmsg()

sk_page_frag_refill() allocates either a compound page or an order-0
page. We can use page_ref_inc() which is slightly faster than get_page()

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c