summaryrefslogtreecommitdiff
path: root/net/core/skbuff.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2017-02-02 05:13:23 +0300
committerDavid S. Miller <davem@davemloft.net>2017-02-03 07:03:05 +0300
commitb9ea2a7be758f2c07a0c044645edc409a8a388fd (patch)
treedf87e4aeef3b72752d470fe67a5127e26b1b4838 /net/core/skbuff.c
parentbdcfa156039dcfe2be989b73c4ae1be3d5d0f804 (diff)
downloadlinux-b9ea2a7be758f2c07a0c044645edc409a8a388fd.tar.xz
net: remove useless pfmemalloc setting
When __alloc_skb() allocates an skb from fast clone cache, setting pfmemalloc on the clone is not needed. Clone will be properly initialized later at skb_clone() time, including pfmemalloc field, as it is included in the headers_start/headers_end section which is fully copied. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/skbuff.c')
-rw-r--r--net/core/skbuff.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index 26c1344cc23e..4f8f2a1a66b5 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -271,7 +271,6 @@ struct sk_buff *__alloc_skb(unsigned int size, gfp_t gfp_mask,
atomic_set(&fclones->fclone_ref, 1);
fclones->skb2.fclone = SKB_FCLONE_CLONE;
- fclones->skb2.pfmemalloc = pfmemalloc;
}
out:
return skb;