Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b9ea2a7b authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

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: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bdcfa156
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -271,7 +271,6 @@ struct sk_buff *__alloc_skb(unsigned int size, gfp_t gfp_mask,
		atomic_set(&fclones->fclone_ref, 1);
		atomic_set(&fclones->fclone_ref, 1);


		fclones->skb2.fclone = SKB_FCLONE_CLONE;
		fclones->skb2.fclone = SKB_FCLONE_CLONE;
		fclones->skb2.pfmemalloc = pfmemalloc;
	}
	}
out:
out:
	return skb;
	return skb;