net: core: another layer of lists, around PF_MEMALLOC skb handling
authorSasha Levin <sashal@kernel.org>
Fri, 17 May 2019 01:30:49 +0000 (21:30 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 May 2019 16:48:55 +0000 (18:48 +0200)
commitfc7fab70541f70d214448e3f41c9ea2e9854f0f5
treee27848ee5da73265919a80b10137918439d58e1a
parent8baec4ebdf084961516f17cadbad14cac082ee4e
net: core: another layer of lists, around PF_MEMALLOC skb handling

[ Upstream commit 78ed8cc25986ac5c21762eeddc1e86e94d422e36 ]

First example of a layer splitting the list (rather than merely taking
 individual packets off it).
Involves new list.h function, list_cut_before(), like list_cut_position()
 but cuts on the other side of the given entry.

Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[sl: cut out non list.h bits, we only want list_cut_before]
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/list.h